Changeset 468
- Timestamp:
- 04/04/06 02:34:50 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/modules/shellcode-signatures/parser.y
r466 r468 59 59 : identifier SC_LBR statements SC_RBR SC_SEMI 60 60 { 61 /* 61 62 int mapinverse[MAP_MAX]; 63 int i,j; 64 65 for( i = 0, j=shellcodes->map_items-1; i < shellcodes->map_items; i++,j-- ) 66 { 67 // printf(" i = %i j = %i value %i\n",i,j,shellcodes->map[i]); 68 mapinverse[j] = shellcodes->map[i]; 69 } 70 71 for( i = 0 ; i < shellcodes->map_items; i++) 72 { 73 shellcodes->map[i] = mapinverse[i]; 74 } 75 76 77 /* 62 78 printf("shellcode:\n"); 63 79 … … 68 84 printf("\tmap "); 69 85 70 int i;86 71 87 for( i = 0; i < shellcodes->map_items; i++ ) 72 88 { … … 180 196 map_values 181 197 : map_value map_value_comma_list 182 ; 198 { 199 shellcodes->map[shellcodes->map_items++] = $1; 200 } 201 ; 183 202 184 203 map_value_comma_list
