Skip to content

Commit 5fb5234

Browse files
committed
fix checkdb integer overflow
1 parent 1e7ea20 commit 5fb5234

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/checkdb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ amcheck_one_index(check_indexes_arg *arguments,
479479
params[0] = palloc(64);
480480

481481
/* first argument is index oid */
482-
sprintf(params[0], "%i", ind->indexrelid);
482+
sprintf(params[0], "%u", ind->indexrelid);
483483
/* second argument is heapallindexed */
484484
params[1] = heapallindexed ? "true" : "false";
485485

0 commit comments

Comments
 (0)