Skip to content

Commit 039d6a9

Browse files
committed
Increase number of edges that can be used.
This allows us to fuzz targets with more edges, i.e. Chrome.
1 parent 773aaed commit 039d6a9

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

Sources/libcoverage/include/libcoverage.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ struct edge_counts {
3333
uint32_t * edge_hit_count;
3434
};
3535

36-
#define SHM_SIZE 0x100000
36+
// Size of the shared memory region. Defines an upper limit on the number of
37+
// coverage edges that can be tracked. When bumping this number, please also
38+
// update Target/coverage.c.
39+
#define SHM_SIZE 0x200000
3740
#define MAX_EDGES ((SHM_SIZE - 4) * 8)
3841

3942
// Structure of the shared memory region.

Targets/coverage.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#define REPRL_DRFD 102
1111
#define REPRL_DWFD 103
1212

13-
#define SHM_SIZE 0x100000
13+
#define SHM_SIZE 0x200000
1414
#define MAX_EDGES ((SHM_SIZE - 4) * 8)
1515

1616
#define CHECK(cond) if (!(cond)) { fprintf(stderr, "\"" #cond "\" failed\n"); _exit(-1); }

0 commit comments

Comments
 (0)