forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit9e5f3d0
committed
Guard against null t->tm_zone in strftime.c.
The upstream IANA code does not guard against null TM_ZONE pointers in thisfunction, but in our code there is such a check in the other pre-existinguse of t->tm_zone. We do have some places that set pg_tm.tm_zone to NULL.I'm not entirely sure it's possible to reach strftime with such a value,but I'm not sure it isn't either, so be safe.Per Coverity complaint.1 parent5971acc commit9e5f3d0
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
459 | 459 |
| |
460 | 460 |
| |
461 | 461 |
| |
462 |
| - | |
| 462 | + | |
| 463 | + | |
463 | 464 |
| |
464 | 465 |
| |
465 | 466 |
| |
|
0 commit comments
Comments
(0)