forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4868e44
committed
Ensure that snprintf.c's fmtint() doesn't overflow when printing INT64_MIN.
This isn't actually a live bug, as the output happens to be thesame. But it upsets tools like UBSan, which makes it worthwhile tofix.As it's an issue without practical consequences, don't backpatch.Author: Andres FreundDiscussion:https://postgr.es/m/20180928001121.hhx5n6dsygqxr5wu@alap3.anarazel.de1 parent9a3cebe commit4868e44
1 file changed
+4
-3
lines changedLines changed: 4 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1007 | 1007 |
| |
1008 | 1008 |
| |
1009 | 1009 |
| |
| 1010 | + | |
1010 | 1011 |
| |
1011 | 1012 |
| |
1012 | 1013 |
| |
| |||
1045 | 1046 |
| |
1046 | 1047 |
| |
1047 | 1048 |
| |
1048 |
| - | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
1049 | 1052 |
| |
1050 | 1053 |
| |
1051 | 1054 |
| |
| |||
1056 | 1059 |
| |
1057 | 1060 |
| |
1058 | 1061 |
| |
1059 |
| - | |
1060 |
| - | |
1061 | 1062 |
| |
1062 | 1063 |
| |
1063 | 1064 |
| |
|
0 commit comments
Comments
(0)