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:
f0d6562
)
cdriso: missing null check
author
notaz
<notasas@gmail.com>
Fri, 1 Nov 2024 00:00:34 +0000
(
02:00
+0200)
committer
notaz
<notasas@gmail.com>
Fri, 1 Nov 2024 00:52:10 +0000
(
02:52
+0200)
libpcsxcore/cdriso.c
patch
|
blob
|
blame
|
history
diff --git
a/libpcsxcore/cdriso.c
b/libpcsxcore/cdriso.c
index
9b98fbe
..
9282430
100644
(file)
--- a/
libpcsxcore/cdriso.c
+++ b/
libpcsxcore/cdriso.c
@@
-1647,7
+1647,7
@@
int ISOreadTrack(const unsigned char *time, void *buf)
ret = cdimg_read_func(cdHandle, 0, buf, sector);
if (ret < 12*2 + 2048) {
- if (multifile && sector >= msf2sec(ti[1].length)) {
+ if (
buf &&
multifile && sector >= msf2sec(ti[1].length)) {
// assume a gap not backed by a file
memset(buf, 0, CD_FRAMESIZE_RAW);
return 0;