← Commit list

fa8412ca24

Stefan Eissing
Stefan Eissing
2026-09-22
SUCCESS Duration: 395s

Subject

uint-table: add remove-max precaution

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

lib/uint-table.c+2 -1
@@ -149,7 +149,8 @@ bool Curl_uint32_tbl_add(struct uint32_tbl *tbl, void *entry, uint32_t *pkey)
void Curl_uint32_tbl_remove(struct uint32_tbl *tbl, uint32_t key)
{
- uint32_tbl_clear_rows(tbl, key, key + 1);
+ if(key < tbl->nrows)
+ uint32_tbl_clear_rows(tbl, key, key + 1);
}
bool Curl_uint32_tbl_contains(struct uint32_tbl *tbl, uint32_t key)