summaryrefslogtreecommitdiff
path: root/package/busybox/patches
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2007-02-16 19:15:30 +0000
committerFelix Fietkau <nbd@openwrt.org>2007-02-16 19:15:30 +0000
commit5d5e8ca720305a113e7c013d997ea31d7c4798ee (patch)
treed6423561e5cb4294a873d03627221442d5df9263 /package/busybox/patches
parent509bb267a32dbc4f9a663683e1de42e3fec31e63 (diff)
downloadmtk-20170518-5d5e8ca720305a113e7c013d997ea31d7c4798ee.zip
mtk-20170518-5d5e8ca720305a113e7c013d997ea31d7c4798ee.tar.gz
mtk-20170518-5d5e8ca720305a113e7c013d997ea31d7c4798ee.tar.bz2
fix memleak in uniq (#1354)
SVN-Revision: 6313
Diffstat (limited to 'package/busybox/patches')
-rw-r--r--package/busybox/patches/430-uniq_memleak.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/package/busybox/patches/430-uniq_memleak.patch b/package/busybox/patches/430-uniq_memleak.patch
new file mode 100644
index 0000000..10f464b
--- /dev/null
+++ b/package/busybox/patches/430-uniq_memleak.patch
@@ -0,0 +1,12 @@
+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 @@
+
+ if (!s0 || strcmp(e0, e1)) {
+ break;
++ } else {
++ free(s1);
+ }
+
+ ++dups; /* Note: Testing for overflow seems excessive. */