packages/net/aircrack-ng/patches/001-no_abusive_malloc.patch
florian 7ce7e880b2 Prevent aircrack-ng from crashing (#4180)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@13162 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-11-09 22:34:59 +00:00

15 lines
540 B
Diff

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;