forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit81256cd
committed
Fix unsafe usage of strerror(errno) within ereport().
This is the converse of the unsafe-usage-of-%m problem: the reasonereport/elog provide that format code is mainly to dodge the hazardof errno getting changed before control reaches functions within thearguments of the macro. I only found one instance of this hazard,but it's been there since 9.4 :-(.1 parenta13b47a commit81256cd
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2041 | 2041 |
| |
2042 | 2042 |
| |
2043 | 2043 |
| |
| 2044 | + | |
| 2045 | + | |
2044 | 2046 |
| |
2045 | 2047 |
| |
2046 | 2048 |
| |
2047 |
| - | |
| 2049 | + | |
2048 | 2050 |
| |
2049 | 2051 |
| |
2050 | 2052 |
| |
|
0 commit comments
Comments
(0)