aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-secure-gssapi.c
diff options
context:
space:
mode:
authorDean Rasheed <dean.a.rasheed@gmail.com>2023-11-09 09:57:52 +0000
committerDean Rasheed <dean.a.rasheed@gmail.com>2023-11-09 09:57:52 +0000
commitb17a02be27e01d46cf9a74d173009547305d4cf8 (patch)
tree564a4f5b1eae86d016df19e73b0572f55d29990e /src/interfaces/libpq/fe-secure-gssapi.c
parent2fe2d1af14fd2fb5afeee94b94c4d8a34a829e32 (diff)
downloadpostgresql-b17a02be27e01d46cf9a74d173009547305d4cf8.tar.gz
postgresql-b17a02be27e01d46cf9a74d173009547305d4cf8.zip
Fix corner-case 64-bit integer subtraction bug on some platforms.
When computing "0 - INT64_MIN", most platforms would report an overflow error, which is correct. However, platforms without integer overflow builtins or 128-bit integers would fail to spot the overflow, and incorrectly return INT64_MIN. Back-patch to all supported branches. Patch be me. Thanks to Jian He for initial investigation, and Laurenz Albe and Tom Lane for review. Discussion: https://postgr.es/m/CAEZATCUNK-AZSD0jVdgkk0N%3DNcAXBWeAEX-QU9AnJPensikmdQ%40mail.gmail.com
Diffstat (limited to 'src/interfaces/libpq/fe-secure-gssapi.c')
0 files changed, 0 insertions, 0 deletions