GNOME Bugzilla – Bug 743389
gcab crashes with some invalid CAB files
Last modified: 2015-03-12 19:59:07 UTC
Created attachment 295253 [details] [review] Fix for the AFL-detected crashes Jakub Wilk pointed out at https://bugs.debian.org/775941 that AFL (http://lcamtuf.coredump.cx/afl/) finds quite a few crashes caused by invalid CABs. They're mostly due to either missing input validation or error paths which don't fill in error information; the attached patch fixes these. With the patch applied AFL no longer finds any crashes.
I should add that "AFL no longer finds any crashes" within the limits of my tests...
Created attachment 295385 [details] [review] Fix for the AFL-detected crashes This new version fixes all the crashes found when extracting files (the first series covered '-t' only).
Created attachment 299149 [details] [review] Fix for the AFL-detected crashes This is the updated patch for gcab 0.5.
Review of attachment 295385 [details] [review]: patch looks good, ack
Review of attachment 299149 [details] [review]: ack
The following fix has been pushed: be1d0a2 Fix for the AFL-detected crashes
Created attachment 299234 [details] [review] Fix for the AFL-detected crashes Jakub Wilk pointed out at https://bugs.debian.org/775941 that AFL (http://lcamtuf.coredump.cx/afl/) finds quite a few crashes caused by invalid CABs. They're mostly due to either missing input validation or error paths which don't fill in error information; the attached patch fixes these. With the patch applied AFL no longer finds any crashes.