summaryrefslogtreecommitdiff
path: root/src/backend/utils/misc/tzparser.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2014-10-06 21:23:20 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2014-10-06 21:23:45 -0400
commit037b912ecc87b4e6cdd933e23fc8ba5d3e45ec02 (patch)
tree43d9a54e7ed0c5396222b683ca974874a2a2a436 /src/backend/utils/misc/tzparser.c
parent525510aea55e7c1259de6853555534559110ca50 (diff)
Fix array overrun in ecpg's version of ParseDateTime().
The code wrote a value into the caller's field[] array before checking to see if there was room, which of course is backwards. Per report from Michael Paquier. I fixed the equivalent bug in the backend's version of this code way back in 630684d3a130bb93, but failed to think about ecpg's copy. Fortunately this doesn't look like it would be exploitable for anything worse than a core dump: an external attacker would have no control over the single word that gets written.
Diffstat (limited to 'src/backend/utils/misc/tzparser.c')
0 files changed, 0 insertions, 0 deletions