Skip to content

Commit 39d5934

Browse files
65_536 bytes are 64 kibibytes (#3333)
1 parent d1a09b6 commit 39d5934

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

crates/libafl_targets/build.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
use std::{env, fs::File, io::Write, path::Path};
44

55
const TWO_MB: usize = 2_621_440;
6-
const SIXTY_FIVE_KB: usize = 65_536;
6+
const SIXTY_FOUR_KIB: usize = 65_536;
77

88
#[rustversion::nightly]
99
fn enable_nightly() {
@@ -33,23 +33,23 @@ fn main() {
3333

3434
let edges_map_default_size: usize = option_env!("LIBAFL_EDGES_MAP_DEFAULT_SIZE")
3535
.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)
3737
.expect("Could not parse LIBAFL_EDGES_MAP_DEFAULT_SIZE");
3838

3939
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)
4141
.expect("Could not parse LIBAFL_CMP_MAP_SIZE");
4242

4343
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)
4545
.expect("Could not parse LIBAFL_CMPLOG_MAP_W");
4646

4747
let cmplog_map_h: usize = option_env!("LIBAFL_CMPLOG_MAP_H")
4848
.map_or(Ok(32), str::parse)
4949
.expect("Could not parse LIBAFL_CMPLOG_MAP_H");
5050

5151
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)
5353
.expect("Could not parse LIBAFL_ACCOUNTING_MAP_SIZE");
5454

5555
assert!(edges_map_default_size <= edges_map_allocated_size);

0 commit comments

Comments
 (0)