pgpool / pgpool2

This is the official mirror of git://git.postgresql.org/git/pgpool2.git. Note that this is just a *mirror* - we don't work with pull requests on github. Please subscribe to pgpool-hackers mailing list from our website and submit your patch to this mailing list.
https://www.pgpool.net
Other
305 stars 87 forks source link

Fix armhf segfault in error message handling #15

Open cpaelzer opened 6 years ago

cpaelzer commented 6 years ago

On armhf the return value of an error to get a message gets read as value 255 which qualifies as >0. But going on the message pointer has a value of 0x25000000 and later on segfaults when trying to access that.

Fixes #14

Signed-off-by: Christian Ehrhardt christian.ehrhardt@canonical.com

tatsuo-ishii commented 5 years ago

Sorry to inform you not earlier. Your patch has been merged into upstream.

https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=75b27e72537a5d0c8e1be2c9a405328accdc8133

Thank you very much!