From: Gabriel Ebner Date: Sun, 4 May 2008 11:50:12 +0000 (+0000) Subject: api06: Fix bounds check. X-Git-Tag: live~8121^2~366 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/2b596387d2d0ede41a77d36c17195b1a85a6e7b0 api06: Fix bounds check. --- diff --git a/db/migrate/013_populate_node_tags_and_remove_helper.c b/db/migrate/013_populate_node_tags_and_remove_helper.c index fd000343f..26a8f71df 100644 --- a/db/migrate/013_populate_node_tags_and_remove_helper.c +++ b/db/migrate/013_populate_node_tags_and_remove_helper.c @@ -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(); }