Commit 93622ee
committed
fix: fix overflow
Fixes bug seen in the stress tests in CI:
malloc(): corrupted top size
Aborted (core dumped) TIMES=1 bin/benchmarks/matcher.lua
`match_count` is zero-indexed, so given a limit of, say, 30, we reserve
space for 30 matches, and will break out of our `for` loop right after
storing the match with index `29`.1 parent a3be70c commit 93622ee
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
0 commit comments