api06: Fix bounds check.

This commit is contained in:
Gabriel Ebner 2008-05-04 11:50:12 +00:00
parent e0e5423fb9
commit 2b596387d2

View file

@ -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();
}