X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/48253766fbdf7f4191c5c01e20ea66a348e78f30..15950a617ef9b9952534c1a18c1b0fcd5d2d46f2:/package/busybox/patches/430-uniq_memleak.patch diff --git a/package/busybox/patches/430-uniq_memleak.patch b/package/busybox/patches/430-uniq_memleak.patch index 10f464bd1..df56bf810 100644 --- a/package/busybox/patches/430-uniq_memleak.patch +++ b/package/busybox/patches/430-uniq_memleak.patch @@ -1,12 +1,11 @@ -diff -ur bb.old/coreutils/uniq.c bb.dev/coreutils/uniq.c ---- bb.old/coreutils/uniq.c 2007-01-24 22:34:43.000000000 +0100 -+++ bb.dev/coreutils/uniq.c 2007-02-16 20:04:19.245454368 +0100 -@@ -83,6 +83,8 @@ +--- a/coreutils/uniq.c ++++ b/coreutils/uniq.c +@@ -82,6 +82,8 @@ - if (!s0 || strcmp(e0, e1)) { + if (!s0 || strncmp(e0, e1, max_chars)) { break; + } else { + free(s1); } - ++dups; /* Note: Testing for overflow seems excessive. */ + ++dups; /* note: testing for overflow seems excessive. */