openwrt_archive/package/busybox/patches/700-hexdump_segfault_fix.patch
Jo-Philipp Wich d9ee0fc770 [backfire] busybox: backport r29156
SVN-Revision: 29159
2011-11-15 17:55:01 +00:00

12 lines
309 B
Diff

--- a/libbb/dump.c
+++ b/libbb/dump.c
@@ -304,7 +304,7 @@ static void rewrite(priv_dumper_t *dumpe
) {
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;