CVE-2016-3189 - fix use-after-free in bzip2recover

Patch by Jakub Martisko <jamartis@redhat.com>
This commit is contained in:
Federico Mena Quintero 2019-05-27 14:08:14 -05:00
parent 1e8b0d1044
commit 25c3dfee12

View File

@ -458,6 +458,7 @@ Int32 main ( Int32 argc, Char** argv )
bsPutUChar ( bsWr, 0x50 ); bsPutUChar ( bsWr, 0x90 );
bsPutUInt32 ( bsWr, blockCRC );
bsClose ( bsWr );
outFile = NULL;
}
if (wrBlock >= rbCtr) break;
wrBlock++;