Commit 31e5445
Uri Yagelnik
hashtable: add bounds check in hashtableNext iterator
Prevent iteration beyond hashtable bounds by checking if iterator
is already at the end before proceeding with the main iteration loop.
This adds defensive bounds checking for table index and bucket index.
Signed-off-by: Uri Yagelnik <uriy@amazon.com>1 parent a47e8fa commit 31e5445
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2025 | 2025 | | |
2026 | 2026 | | |
2027 | 2027 | | |
| 2028 | + | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
| 2034 | + | |
| 2035 | + | |
2028 | 2036 | | |
2029 | 2037 | | |
2030 | 2038 | | |
| |||
0 commit comments