We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e72f8e9 commit 171dae0Copy full SHA for 171dae0
Sources/CProfileRecorderSampler/sampler.c
@@ -87,7 +87,7 @@ swipr_state_abort_preparing(void) {
87
static int
88
swipr_dump_shared_objs(FILE *output) {
89
size_t all_libs_count = 0;
90
- struct swipr_dynamic_lib *all_libs = calloc(1024, sizeof(*all_libs));
+ struct swipr_dynamic_lib *all_libs = calloc(SWIPR_MAX_LIBS, sizeof(*all_libs));
91
if (!all_libs) {
92
return 1;
93
}
0 commit comments