]> granicus.if.org Git - postgresql/commit
Fix unsafe usage of strerror(errno) within ereport().
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 21 May 2018 04:32:28 +0000 (00:32 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 21 May 2018 04:32:52 +0000 (00:32 -0400)
commit5517367e978b29dedb1ca0e84a0285b8f9446fde
tree47e934f2818dc84898e766cf937923e6590ad0bc
parente52cabff7054005d2f7157c236d996dcd79baf5c
Fix unsafe usage of strerror(errno) within ereport().

This is the converse of the unsafe-usage-of-%m problem: the reason
ereport/elog provide that format code is mainly to dodge the hazard
of errno getting changed before control reaches functions within the
arguments of the macro.  I only found one instance of this hazard,
but it's been there since 9.4 :-(.
src/backend/libpq/auth.c