forked from openwrt/openwrt
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue causes a crash with specially crafted bzip2 files. More info: https://nvd.nist.gov/vuln/detail/CVE-2016-3189 Taken from Fedora. Signed-off-by: Rosen Penev <[email protected]> (cherry picked from commit f9469ef)
- Loading branch information
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
diff -up ./bzip2recover.c.old ./bzip2recover.c | ||
--- ./bzip2recover.c.old 2016-03-22 08:49:38.855620000 +0100 | ||
+++ ./bzip2recover.c 2016-03-30 10:22:27.341430099 +0200 | ||
@@ -457,6 +457,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++; |