]> 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:48 +0000 (00:32 -0400)
commitced0cdc76cfc09eaa722e79fe9720729703da2ce
tree3ce0f28ffd1ba0f076099a57a91b35e59f6680fe
parent29a4db65fbb752b2c0b212f331eb375532a7b9d9
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