Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102544099
D30414.id89738.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
906 B
Referenced Files
None
Subscribers
None
D30414.id89738.diff
View Options
Index: stand/libsa/bzipfs.c
===================================================================
--- stand/libsa/bzipfs.c
+++ stand/libsa/bzipfs.c
@@ -340,6 +340,9 @@
target - bzf->bzf_bzstream.total_out_lo32), NULL);
if (errno)
return(-1);
+ /* Break out of loop if end of file has been reached. */
+ if (zf->zf_endseen)
+ break;
}
/* This is where we are (be honest if we overshot) */
return(bzf->bzf_bzstream.total_out_lo32);
Index: stand/libsa/gzipfs.c
===================================================================
--- stand/libsa/gzipfs.c
+++ stand/libsa/gzipfs.c
@@ -315,6 +315,9 @@
target - zf->zf_zstream.total_out), NULL);
if (errno)
return(-1);
+ /* Break out of loop if end of file has been reached. */
+ if (zf->zf_endseen)
+ break;
}
/* This is where we are (be honest if we overshot) */
return(zf->zf_zstream.total_out);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 14, 8:42 PM (7 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14633518
Default Alt Text
D30414.id89738.diff (906 B)
Attached To
Mode
D30414: libsa: Fix infinite loop in bzipfs & gzipfs
Attached
Detach File
Event Timeline
Log In to Comment