Commit d3b2caa
committed
fix: avoid using uninitialized memory
During a RUM index scan, if a concurrent VACUUM completes and removes
all items from a posting tree leaf page, entry->nlist can become zero.
In this case, entry->curItem may point to uninitialized memory, leading
to a crash. The commit fixes this bug.1 parent f557ab1 commit d3b2caa
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
498 | 498 | | |
499 | 499 | | |
500 | 500 | | |
| 501 | + | |
| 502 | + | |
| 503 | + | |
501 | 504 | | |
502 | 505 | | |
503 | 506 | | |
| |||
0 commit comments