source: trunk/package/busybox/patches/700-hexdump_segfault_fix.patch @ 29156

Last change on this file since 29156 was 29156, checked in by jow, 5 years ago

[package] busybox: fix hexdump segmentation fault with an empty leading format unit

File size: 309 bytes
  • libbb/dump.c

    a b static NOINLINE void rewrite(priv_dumper 
    301301                ) { 
    302302                        fu->reps += (dumper->blocksize - fs->bcnt) / fu->bcnt; 
    303303                } 
    304                 if (fu->reps > 1) { 
     304                if (fu->reps > 1 && fu->nextpr) { 
    305305                        for (pr = fu->nextpr;; pr = pr->nextpr) 
    306306                                if (!pr->nextpr) 
    307307                                        break; 
Note: See TracBrowser for help on using the repository browser.