|
3 | 3 | use std::{env, fs::File, io::Write, path::Path};
|
4 | 4 |
|
5 | 5 | const TWO_MB: usize = 2_621_440;
|
6 |
| -const SIXTY_FIVE_KB: usize = 65_536; |
| 6 | +const SIXTY_FOUR_KIB: usize = 65_536; |
7 | 7 |
|
8 | 8 | #[rustversion::nightly]
|
9 | 9 | fn enable_nightly() {
|
@@ -33,23 +33,23 @@ fn main() {
|
33 | 33 |
|
34 | 34 | let edges_map_default_size: usize = option_env!("LIBAFL_EDGES_MAP_DEFAULT_SIZE")
|
35 | 35 | .or(option_env!("LIBAFL_EDGES_MAP_DEFAULT_SIZE")) // keep old env for retrocompatibility
|
36 |
| - .map_or(Ok(SIXTY_FIVE_KB), str::parse) |
| 36 | + .map_or(Ok(SIXTY_FOUR_KIB), str::parse) |
37 | 37 | .expect("Could not parse LIBAFL_EDGES_MAP_DEFAULT_SIZE");
|
38 | 38 |
|
39 | 39 | let cmp_map_size: usize = option_env!("LIBAFL_CMP_MAP_SIZE")
|
40 |
| - .map_or(Ok(SIXTY_FIVE_KB), str::parse) |
| 40 | + .map_or(Ok(SIXTY_FOUR_KIB), str::parse) |
41 | 41 | .expect("Could not parse LIBAFL_CMP_MAP_SIZE");
|
42 | 42 |
|
43 | 43 | let cmplog_map_w: usize = option_env!("LIBAFL_CMPLOG_MAP_W")
|
44 |
| - .map_or(Ok(SIXTY_FIVE_KB), str::parse) |
| 44 | + .map_or(Ok(SIXTY_FOUR_KIB), str::parse) |
45 | 45 | .expect("Could not parse LIBAFL_CMPLOG_MAP_W");
|
46 | 46 |
|
47 | 47 | let cmplog_map_h: usize = option_env!("LIBAFL_CMPLOG_MAP_H")
|
48 | 48 | .map_or(Ok(32), str::parse)
|
49 | 49 | .expect("Could not parse LIBAFL_CMPLOG_MAP_H");
|
50 | 50 |
|
51 | 51 | let acc_map_size: usize = option_env!("LIBAFL_ACCOUNTING_MAP_SIZE")
|
52 |
| - .map_or(Ok(SIXTY_FIVE_KB), str::parse) |
| 52 | + .map_or(Ok(SIXTY_FOUR_KIB), str::parse) |
53 | 53 | .expect("Could not parse LIBAFL_ACCOUNTING_MAP_SIZE");
|
54 | 54 |
|
55 | 55 | assert!(edges_map_default_size <= edges_map_allocated_size);
|
|
0 commit comments