Prevent aircrack-ng from crashing (#4180)
[openwrt/svn-archive/archive.git] / net / aircrack-ng / patches / 001-no_abusive_malloc.patch
1 diff -urN aircrack-ng-r1142/src/aircrack-ng.c aircrack-ng-r1142.new/src/aircrack-ng.c
2 --- aircrack-ng-r1142/src/aircrack-ng.c 2008-08-17 03:04:57.000000000 +0200
3 +++ aircrack-ng-r1142.new/src/aircrack-ng.c 2008-11-09 23:29:20.000000000 +0100
4 @@ -4450,8 +4450,8 @@
5 opt.bssidmerge = NULL;
6 opt.oneshot = 0;
7
8 - all_ivs = malloc( (256*256*256) * sizeof(used_iv));
9 - bzero(all_ivs, (256*256*256)*sizeof(used_iv));
10 + //all_ivs = malloc( (256*256*256) * sizeof(used_iv));
11 + //bzero(all_ivs, (256*256*256)*sizeof(used_iv));
12
13 forceptw = 0;
14