[package] crda: new package (thanks to Hauke Mehrtens <hauke@hauke-m.de>)
[openwrt.git] / package / busybox / patches / 430-uniq_memleak.patch
index 10f464b..df56bf8 100644 (file)
@@ -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. */
This page took 0.039767 seconds and 4 git commands to generate.