forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd9a1e9d
committed
Fix array overrun in ecpg's version of ParseDateTime().
The code wrote a value into the caller's field[] array before checkingto see if there was room, which of course is backwards. Per report fromMichael Paquier.I fixed the equivalent bug in the backend's version of this code way backin630684d, but failed to think about ecpg's copy. Fortunatelythis doesn't look like it would be exploitable for anything worse than acore dump: an external attacker would have no control over the single wordthat gets written.1 parent64a6285 commitd9a1e9d
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1672 | 1672 |
| |
1673 | 1673 |
| |
1674 | 1674 |
| |
| 1675 | + | |
1675 | 1676 |
| |
1676 | 1677 |
| |
1677 | 1678 |
| |
| |||
1685 | 1686 |
| |
1686 | 1687 |
| |
1687 | 1688 |
| |
1688 |
| - | |
1689 | 1689 |
| |
1690 | 1690 |
| |
| 1691 | + | |
1691 | 1692 |
| |
1692 | 1693 |
| |
1693 | 1694 |
| |
|
0 commit comments
Comments
(0)