diff options
author | Florian Westphal <fw@strlen.de> | 2025-03-10 08:29:37 +0100 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2025-03-10 10:31:17 +0100 |
commit | f6d9610c86ce6f1b8618611e3c993970760bc03d (patch) | |
tree | 93da8063c0b60010f0c77dcce4a55565fdf85ccf /src/mergesort.c | |
parent | 47c4a5ddbb466da165c039de6eefb955509b6439 (diff) |
evaluate: don't crash if range has same start and end interval
In this case, evaluation step replaces the range expression with a
single value and we'd crash as range->left/right contain garbage
values.
Simply replace the input expression with the evaluation result.
Also add a test case modeled on the afl reproducer.
Fixes: fe6cc0ad29cd ("evaluate: consolidate evaluation of symbol range expression")
Signed-off-by: Florian Westphal <fw@strlen.de>
Reviewed-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/mergesort.c')
0 files changed, 0 insertions, 0 deletions