postgresql/src/interfaces
Jacob Champion 8934f2136c Add pg_add_size_overflow() and friends
Commit 600086f47 added (several bespoke copies of) size_t addition with
overflow checks to libpq. Move this to common/int.h, along with
its subtraction and multiplication counterparts.

pg_neg_size_overflow() is intentionally omitted; I'm not sure we should
add SSIZE_MAX to win32_port.h for the sake of a function with no
callers.

Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://postgr.es/m/CAOYmi%2B%3D%2BpqUd2MUitvgW1pAJuXgG_TKCVc3_Ek7pe8z9nkf%2BAg%40mail.gmail.com
2025-11-24 09:59:38 -08:00
..
ecpg ecpg: check return value of replace_variables() 2025-10-17 10:03:15 +02:00
libpq Add pg_add_size_overflow() and friends 2025-11-24 09:59:38 -08:00
libpq-oauth Make some use of anonymous unions [libpq-oauth] 2025-11-24 09:55:16 -08:00
Makefile oauth: Move the builtin flow into a separate module 2025-05-01 09:14:30 -07:00
meson.build Update copyright for 2025 2025-01-01 11:21:55 -05:00