Dashboardinstitutional-transition-lab_parse_json_object exponent overflow

_parse_json_object exponent overflow

Category: gotcha
Confidence: 1.00
ID: 01a0859c-3efb-7a46-84e2-2fa3d9ebbe15
Project ID: 1fa3712f-997f-4884-b7ec-8abb79f9e342
Cross-project: No
Recalled in other projects: 1
Source session: 0yGAnpNlrOvBQqxq2
Created: 2026-09-09 00:46:37
Updated: 2026-09-09 10:00:04

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 4d ago

Content

Trap: parse_constant looks sufficient because it rejects literal NaN and infinities, but JSON numbers such as 1e9999 use parse_float and become inf; schemas may then receive non-finite values. Fix: use a parse_float callback that rejects non-finite conversions, while retaining duplicate-key, invalid UTF-8, and object-root checks.

Move to: