notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2babf35
)
Prevent segfault while scanning for MP3 files
author
vobe
<vobe@jackal.fr>
Thu, 25 Dec 2014 11:11:32 +0000
(12:11 +0100)
committer
vobe
<vobe@jackal.fr>
Thu, 25 Dec 2014 11:11:32 +0000
(12:11 +0100)
Make sure the destination string is NULL-terminated when building the uppercase extension. The tmp_ext_u array is uninitialized when it's passed to this function.
pico/cd/cd_image.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/cd/cd_image.c
b/pico/cd/cd_image.c
index
07b55ce
..
ae2ef0c
100644
(file)
--- a/
pico/cd/cd_image.c
+++ b/
pico/cd/cd_image.c
@@
-61,6
+61,7
@@
static void to_upper(char *d, const char *s)
else
*d = *s;
}
+ *d = 0;
}
// cdd.c uses lba - 150