From 2b596387d2d0ede41a77d36c17195b1a85a6e7b0 Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Sun, 4 May 2008 11:50:12 +0000 Subject: [PATCH 1/1] api06: Fix bounds check. --- db/migrate/013_populate_node_tags_and_remove_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.39.5