Page MenuHomeFreeBSD

D8101.diff
No OneTemporary

D8101.diff

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

Mime Type
text/plain
Expires
Tue, May 19, 9:04 PM (21 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33328206
Default Alt Text
D8101.diff (611 B)

Event Timeline