diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-15 17:38:55 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2011-11-15 17:38:55 +0000 |
commit | d0f5b51a8bd49c00d88d5ad0aa62bae322cec800 (patch) | |
tree | 67ae7a8a19d6123e147502e605835ad05a049acc /package/busybox/patches | |
parent | 817c72ef02d9c16b3a0021404aa9c6781382b74e (diff) | |
download | upstream-d0f5b51a8bd49c00d88d5ad0aa62bae322cec800.tar.gz upstream-d0f5b51a8bd49c00d88d5ad0aa62bae322cec800.tar.bz2 upstream-d0f5b51a8bd49c00d88d5ad0aa62bae322cec800.zip |
busybox: fix hexdump segmentation fault with an empty leading format unit
SVN-Revision: 29156
Diffstat (limited to 'package/busybox/patches')
-rw-r--r-- | package/busybox/patches/700-hexdump_segfault_fix.patch | 11 |
1 files changed, 11 insertions, 0 deletions
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; |