Avoid reading past datum end when parsing JSON.
Noah Misch <noah@leadboat.com>
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.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/json.c | modified | +13 −8 |