diff options
author | harry <hrosen2016@gmail.com> | 2022-08-03 04:02:50 +0300 |
---|---|---|
committer | zeromus <zeromus@users.noreply.github.com> | 2022-08-05 04:15:59 +0300 |
commit | 3fed0331cc7acd3a38ebd1d3eb01342ed04dbe46 (patch) | |
tree | d736a44b23b9ed76705f913fc07c055218b4be91 | |
parent | 14c215208e77b500c14b920b5c47186256378ade (diff) |
Fix for global variable SFCPU read overflow error when running with clang/gcc address sanitizer. The code that writes the save state to disk expects the parameter description to at least be 4 bytes.
-rw-r--r-- | src/state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/state.cpp b/src/state.cpp index a29a46d0..503622b1 100644 --- a/src/state.cpp +++ b/src/state.cpp @@ -110,7 +110,7 @@ SFORMAT SFCPU[]={ { &X.Y, 1, "Y\0\0"},
{ &X.S, 1, "S\0\0"},
{ &X.P, 1, "P\0\0"},
- { &X.DB, 1, "DB"},
+ { &X.DB, 1, "DB\0"},
{ &RAM, 0x800 | FCEUSTATE_INDIRECT, "RAM", },
{ 0 }
};
|