Prevent aircrack-ng from crashing (#4180)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@13162 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
f87aca0ad1
commit
7ce7e880b2
14
net/aircrack-ng/patches/001-no_abusive_malloc.patch
Normal file
14
net/aircrack-ng/patches/001-no_abusive_malloc.patch
Normal file
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user