notaz.gp2x.de
/
pcsx_rearmed.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36c76c8
)
frontend: Fix buffer overrun
author
Paul Cercueil
<paul@crapouillou.net>
Sun, 19 Nov 2023 11:54:22 +0000
(12:54 +0100)
committer
notaz
<notasas@gmail.com>
Mon, 20 Nov 2023 00:50:30 +0000
(
02:50
+0200)
The format passed to sscanf() requested a 256-chars string, but that's
excluding the terminating \0 character as the 257th character.
Signed-off-by: Paul Cercueil <paul@crapouillou.net>
frontend/menu.c
patch
|
blob
|
blame
|
history
diff --git
a/frontend/menu.c
b/frontend/menu.c
index
9200e10
..
413f3ca
100644
(file)
--- a/
frontend/menu.c
+++ b/
frontend/menu.c
@@
-217,7
+217,7
@@
static int optional_cdimg_filter(struct dirent **namelist, int count,
const char *basedir)
{
const char *ext, *p;
- char buf[256], buf2[25
6
];
+ char buf[256], buf2[25
7
];
int i, d, ret, good_cue;
struct STAT statf;
FILE *f;