X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/48253766fbdf7f4191c5c01e20ea66a348e78f30..244e2944c6b2f4efaf7d4375951ae2cf503823cd:/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..48127a57c 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 @@ int uniq_main(int argc UNUSED_PARAM, cha - 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. */