aboutsummaryrefslogtreecommitdiffstats
path: root/package/busybox/patches/810-lsmod-infinite-loop.patch
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2009-03-29 20:26:45 +0000
committerJo-Philipp Wich <jow@openwrt.org>2009-03-29 20:26:45 +0000
commit079a6e99c982cc0c0624b0d7e07a19c9692a7cbe (patch)
tree5bc9ba0c629f341ed7aa6ccf4f25397e9b1490d3 /package/busybox/patches/810-lsmod-infinite-loop.patch
parent6562bf096516b1d5e9fa2abcb48329271f563db6 (diff)
downloadupstream-079a6e99c982cc0c0624b0d7e07a19c9692a7cbe.tar.gz
upstream-079a6e99c982cc0c0624b0d7e07a19c9692a7cbe.tar.bz2
upstream-079a6e99c982cc0c0624b0d7e07a19c9692a7cbe.zip
[package] busybox: avoid infinite loop in lsmod (#4834)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15071 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/busybox/patches/810-lsmod-infinite-loop.patch')
-rw-r--r--package/busybox/patches/810-lsmod-infinite-loop.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/busybox/patches/810-lsmod-infinite-loop.patch b/package/busybox/patches/810-lsmod-infinite-loop.patch
new file mode 100644
index 0000000000..8bc8cd0a76
--- /dev/null
+++ b/package/busybox/patches/810-lsmod-infinite-loop.patch
@@ -0,0 +1,11 @@
+--- a/modutils/lsmod.c
++++ b/modutils/lsmod.c
+@@ -107,7 +107,7 @@
+ continue;
+ } else if (errno != ENOSPC)
+ bb_perror_msg_and_die("module %s: QM_REFS", mn);
+- deps = xrealloc(deps, count);
++ deps = xrealloc(deps, depsize = count);
+ }
+ printf("%-20s%8lu%4ld", mn, info.size, info.usecount);
+ if (info.flags & NEW_MOD_DELETED)