- Notifications
You must be signed in to change notification settings - Fork5k
Commitcf2c7a7
committed
Detect format-string mistakes in the libpq_pipeline test module.
I happened to notice that libpq_pipeline's private implementationof pg_fatal lacked any pg_attribute_printf decoration. Indeed,adding that turned up a mistake! We'd likely never have noticedbecause the error exits in this code are unlikely to get hit,but still, it's a bug.We're so used to having the compiler check this stuff for us thata printf-like function without pg_attribute_printf is a land mine.I wonder if there is a way to detect such omissions.Back-patch to v14 where this code came in.1 parent3a06a79 commitcf2c7a7
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
26 | 26 |
| |
27 | 27 |
| |
28 | 28 |
| |
| 29 | + | |
| 30 | + | |
29 | 31 |
| |
30 | 32 |
| |
31 | 33 |
| |
| |||
914 | 916 |
| |
915 | 917 |
| |
916 | 918 |
| |
917 |
| - | |
| 919 | + | |
918 | 920 |
| |
919 | 921 |
| |
920 | 922 |
| |
|
0 commit comments
Comments
(0)