From: Florian Fainelli Date: Sun, 9 Nov 2008 22:34:59 +0000 (+0000) Subject: Prevent aircrack-ng from crashing (#4180) X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=cee8ac6d52d67b0d9aaf3314c00526d5837d9096;p=openwrt%2Fsvn-archive%2Farchive.git Prevent aircrack-ng from crashing (#4180) SVN-Revision: 13162 --- diff --git a/net/aircrack-ng/patches/001-no_abusive_malloc.patch b/net/aircrack-ng/patches/001-no_abusive_malloc.patch new file mode 100644 index 0000000000..d68df0d6f8 --- /dev/null +++ b/net/aircrack-ng/patches/001-no_abusive_malloc.patch @@ -0,0 +1,14 @@ +diff -urN aircrack-ng-r1142/src/aircrack-ng.c aircrack-ng-r1142.new/src/aircrack-ng.c +--- aircrack-ng-r1142/src/aircrack-ng.c 2008-08-17 03:04:57.000000000 +0200 ++++ aircrack-ng-r1142.new/src/aircrack-ng.c 2008-11-09 23:29:20.000000000 +0100 +@@ -4450,8 +4450,8 @@ + opt.bssidmerge = NULL; + opt.oneshot = 0; + +- all_ivs = malloc( (256*256*256) * sizeof(used_iv)); +- bzero(all_ivs, (256*256*256)*sizeof(used_iv)); ++ //all_ivs = malloc( (256*256*256) * sizeof(used_iv)); ++ //bzero(all_ivs, (256*256*256)*sizeof(used_iv)); + + forceptw = 0; +