From 7be583d9f4f6e1e9c336104e3b29bd19fa5a2067 Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Tue, 15 Nov 2011 17:38:55 +0000 Subject: [package] busybox: fix hexdump segmentation fault with an empty leading format unit git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29156 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/busybox/patches/700-hexdump_segfault_fix.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 package/busybox/patches/700-hexdump_segfault_fix.patch (limited to 'package/busybox/patches') diff --git a/package/busybox/patches/700-hexdump_segfault_fix.patch b/package/busybox/patches/700-hexdump_segfault_fix.patch new file mode 100644 index 0000000000..ab09fb3e42 --- /dev/null +++ b/package/busybox/patches/700-hexdump_segfault_fix.patch @@ -0,0 +1,11 @@ +--- a/libbb/dump.c ++++ b/libbb/dump.c +@@ -301,7 +301,7 @@ static NOINLINE void rewrite(priv_dumper + ) { + fu->reps += (dumper->blocksize - fs->bcnt) / fu->bcnt; + } +- if (fu->reps > 1) { ++ if (fu->reps > 1 && fu->nextpr) { + for (pr = fu->nextpr;; pr = pr->nextpr) + if (!pr->nextpr) + break; -- cgit v1.2.3