]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Avoid reading past datum end when parsing JSON.
authorNoah Misch <noah@leadboat.com>
Wed, 12 Jun 2013 23:51:12 +0000 (19:51 -0400)
committerNoah Misch <noah@leadboat.com>
Wed, 12 Jun 2013 23:51:12 +0000 (19:51 -0400)
commit66008564f8ce570f7ad6368fbde2138e946d328b
tree4377a5b6d835bf4bc3a5409cb38fa09561b37c81
parent3a5d0c55338e6beb4c01ed5fadb1462e90db7545
Avoid reading past datum end when parsing JSON.

Several loops in the JSON parser examined a byte in memory just before
checking whether its address was in-bounds, so they could read one byte
beyond the datum's allocation.  A SIGSEGV is possible.  New in 9.3, so
no back-patch.
src/backend/utils/adt/json.c