about summary refs log tree commit diff
path: root/pkgs/applications/emulators
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2023-11-02 14:58:13 +0000
committerSergei Trofimovich <slyich@gmail.com>2023-11-02 14:58:13 +0000
commitb867bc357aa5c3825b1effecf485635c963f4863 (patch)
treec72170558ec62a535b42f135d6d420925cc6a4b8 /pkgs/applications/emulators
parentdbb68f0b494f4abac5d493ca57b565471aa8af44 (diff)
zsnes: amend fortify3 patch and fix initialization
I was too eager fixing out-of-bounds access and did not notice that
loop increment is `+= 4` instead of `+= 1`. The loop condition was fine
as is.
Diffstat (limited to 'pkgs/applications/emulators')
-rw-r--r--pkgs/applications/emulators/zsnes/fortify3.patch9
1 files changed, 0 insertions, 9 deletions
diff --git a/pkgs/applications/emulators/zsnes/fortify3.patch b/pkgs/applications/emulators/zsnes/fortify3.patch
index 83a67b8b7e879..cbd55a1c7af16 100644
--- a/pkgs/applications/emulators/zsnes/fortify3.patch
+++ b/pkgs/applications/emulators/zsnes/fortify3.patch
@@ -18,12 +18,3 @@ Detected by _FORTIFY_SOURCE=3:
  extern unsigned char SPCRAM[65472];
  unsigned char *SPCState = SPCRAM;
  
-@@ -1456,7 +1456,7 @@ void clearmem()
-   memset(pal16b, 0, 1024);
-   memset(pal16bcl, 0, 1024);
-   memset(pal16bclha, 0, 1024);
--  for (i=0 ; i<1024 ; i+=4)
-+  for (i=0 ; i<1024-4 ; i+=4)
-   {
-     memset(pal16bxcl+i, 255, 2);
-     memset(pal16bxcl+i+2, 0, 2);