Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161293998
D56215.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
566 B
Referenced Files
None
Subscribers
None
D56215.diff
View Options
diff --git a/sys/fs/cd9660/cd9660_rrip.c b/sys/fs/cd9660/cd9660_rrip.c
--- a/sys/fs/cd9660/cd9660_rrip.c
+++ b/sys/fs/cd9660/cd9660_rrip.c
@@ -175,6 +175,8 @@
/* Inserting component */
wlen = isonum_711(pcomp->clen);
inbuf = pcomp->name;
+ if (inbuf + wlen > (char *)pcompe)
+ wlen = ana->maxlen + 1;
break;
default:
printf("RRIP with incorrect flags?");
@@ -246,6 +248,8 @@
/* Inserting component */
wlen = isonum_711(p->h.length) - 5;
inbuf = (char *)p + 5;
+ if (wlen < 0)
+ wlen = ana->maxlen + 1;
break;
default:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jul 3, 12:43 PM (8 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34623797
Default Alt Text
D56215.diff (566 B)
Attached To
Mode
D56215: cd9660: Add length checks to Rock Ridge parser
Attached
Detach File
Event Timeline
Log In to Comment