api06: Fix bounds check.
This commit is contained in:
parent
e0e5423fb9
commit
2b596387d2
1 changed files with 1 additions and 1 deletions
|
@ -105,7 +105,7 @@ static void proc_nodes(struct data *d, const char *tbl, FILE *out, FILE *out_tag
|
|||
unsigned long id = strtoul(row[0], NULL, 10);
|
||||
uint32_t version;
|
||||
|
||||
if (id > d->version_size) {
|
||||
if (id >= d->version_size) {
|
||||
fprintf(stderr, "preallocated nodes size exceeded");
|
||||
abort();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue