A memory allocation failure happening in tcp_parse_tcp_req or
tcp_parse_tcp_rep when trying to allocate an act_rule structure would
have resulted in a crash. These functions are only called during
configuration parsing.
It was raised in GitHub issue #1233.
It could be backported to all stable branches.
}
rule = calloc(1, sizeof(*rule));
+ if (!rule) {
+ memprintf(err, "parsing [%s:%d] : out of memory", file, line);
+ return -1;
+ }
LIST_INIT(&rule->list);
arg = 1;
where = 0;
}
rule = calloc(1, sizeof(*rule));
+ if (!rule) {
+ memprintf(err, "parsing [%s:%d] : out of memory", file, line);
+ return -1;
+ }
LIST_INIT(&rule->list);
arg = 1;
where = 0;