- Notifications
You must be signed in to change notification settings - Fork5
Commita190738
committed
Fix out-of-array-bounds compiler warning
Since the array length check is using a post-increment operator, thecompiler complains that there's a potential write to one element beyondthe end of the array. This is not possible currently: the only path tothis function is through pg_get_object_address(), which already verifiesthat the input array is no more than two elements in length. Still, abug is a bug.No idea why my compiler doesn't complain about this ...Pointed out by Dead Rasheed and Peter Eisentraut1 parenta61fd53 commita190738
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1428 | 1428 | | |
1429 | 1429 | | |
1430 | 1430 | | |
1431 | | - | |
| 1431 | + | |
1432 | 1432 | | |
1433 | 1433 | | |
1434 | 1434 | | |
| |||
0 commit comments
Comments
(0)