forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit1545ca9
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 parent9c515f7 commit1545ca9
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1752 | 1752 | | |
1753 | 1753 | | |
1754 | 1754 | | |
| 1755 | + | |
| 1756 | + | |
1755 | 1757 | | |
1756 | 1758 | | |
1757 | 1759 | | |
1758 | | - | |
| 1760 | + | |
1759 | 1761 | | |
1760 | 1762 | | |
1761 | 1763 | | |
| |||
0 commit comments
Comments
(0)