Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F157157717
D8101.id20892.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
611 B
Referenced Files
None
Subscribers
None
D8101.id20892.diff
View Options
Index: head/lib/libstand/cd9660.c
===================================================================
--- head/lib/libstand/cd9660.c
+++ head/lib/libstand/cd9660.c
@@ -353,7 +353,15 @@
dp = (struct iso_directory_record *)
((char *) dp + isonum_711(dp->length));
- off += isonum_711(dp->length);
+
+ /* if the new block is zero length, its padding */
+ if (isonum_711(dp->length) == 0) {
+ /* skip to next block, if any */
+ off = boff * ISO_DEFAULT_BLOCK_SIZE;
+ continue;
+ } else {
+ off += isonum_711(dp->length);
+ }
}
if (off >= dsize) {
rc = ENOENT;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, May 19, 9:07 PM (21 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33328206
Default Alt Text
D8101.id20892.diff (611 B)
Attached To
Mode
D8101: cd9660_open should check for padding
Attached
Detach File
Event Timeline
Log In to Comment