diff options
author | Aliaksei Urbanski <aliaksei.urbanski@gmail.com> | 2024-07-29 09:54:26 +0300 |
---|---|---|
committer | James Le Cuirot <chewi@gentoo.org> | 2024-07-29 21:52:25 +0100 |
commit | be00b65f35f0589bd71763a747f13d3f366e67de (patch) | |
tree | a87033c8b1a4b133a6409b7dccc1ae9da58eb48a /games-emulation/zsnes/files/zsnes-2.0.12-initc.patch | |
parent | media-libs/libv4l: Drop old 1.24.1 (diff) | |
download | gentoo-be00b65f35f0589bd71763a747f13d3f366e67de.tar.gz gentoo-be00b65f35f0589bd71763a747f13d3f366e67de.tar.bz2 gentoo-be00b65f35f0589bd71763a747f13d3f366e67de.zip |
games-emulation/zsnes: add 2.0.12
Tag:
- https://github.com/xyproto/zsnes/releases/tag/2.0.12
Changes in comparison to 2.0.10:
- fix missing XDG updates
Signed-off-by: Aliaksei Urbanski <aliaksei.urbanski@gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/37767
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
Diffstat (limited to 'games-emulation/zsnes/files/zsnes-2.0.12-initc.patch')
-rw-r--r-- | games-emulation/zsnes/files/zsnes-2.0.12-initc.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/games-emulation/zsnes/files/zsnes-2.0.12-initc.patch b/games-emulation/zsnes/files/zsnes-2.0.12-initc.patch new file mode 100644 index 000000000000..d6ce00b93db0 --- /dev/null +++ b/games-emulation/zsnes/files/zsnes-2.0.12-initc.patch @@ -0,0 +1,28 @@ +# https://github.com/xyproto/zsnes/issues/19#issuecomment-1710906677 +# https://github.com/TrashRaccoonSnuffy/zsnes/commit/f77ec1a0 + +Author: Sneed <127693805+TrashRaccoonSnuffy@users.noreply.github.com> +Date: Thu, 7 Sep 2023 21:06:10 -0300 + + Fix a buffer overflow + +--- a/initc.c ++++ b/initc.c +@@ -1364,7 +1364,7 @@ void clearmem(void) + } + + extern uint8_t BRRBuffer[]; +-extern uint8_t echoon0; ++extern uint8_t echoon0[]; + extern uint32_t PHdspsave; + extern uint32_t PHdspsave2; + s4 echobuf[22500]; +@@ -1373,7 +1373,7 @@ extern uint8_t DSPMem[256]; + void clearvidsound() + { + memset(BRRBuffer, 0, PHdspsave); +- memset(&echoon0, 0, PHdspsave2); ++ memset(echoon0, 0, PHdspsave2); + memset(&echobuf, 0, sizeof(echobuf)); + memset(spcBuffera, 0, 65536 * 4 + 4096); + memset(DSPMem, 0, 256); |