forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitbff7bc6
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 parentb53d104 commitbff7bc6
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
| 32 | + | |
31 | 33 |
| |
32 | 34 |
| |
33 | 35 |
| |
| |||
916 | 918 |
| |
917 | 919 |
| |
918 | 920 |
| |
919 |
| - | |
| 921 | + | |
920 | 922 |
| |
921 | 923 |
| |
922 | 924 |
| |
|
0 commit comments
Comments
(0)