You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sub-issue 8 of 26 from the 2026-11-21 bot-review-comment audit. Parent issue: #179 (Bot review comment tidy up).
Audited origin/main HEAD: 2e5cf37. Audit date: 2026-11-21.
== Finding 8 (verbatim from the audit findings file) ==
PR JTD bytecode codegen via ClassFile API + RFC 8927 conformance #139 — Generated timestamp validator can throw DateTimeParseException instead of a schema error.
Author: chatgpt-codex-connector[bot], 2026-02-08. Comment: JTD bytecode codegen via ClassFile API + RFC 8927 conformance #139 (comment)
Source: json-java21-jtd-codegen/src/main/java/json/java21/jtd/codegen/EmitType.java:302. Current: json-java21-jtd-codegen/src/main/java/json/java21/jtd/codegen/EmitType.java:266-308 (emitTimestampCore: regex match then OffsetDateTime.parse with no exception handling; no try/catch anywhere in EmitType/EmitScaffold).
Flagged: "The regex accepts values like month/day 00, so parse can throw DateTimeParseException, which will bubble out of validation and crash instead of producing a schema error. The interpreter explicitly catches exceptions...".
Still applies: unchanged generated-code shape (EmitType.java:292-297 emits an unguarded OffsetDateTime.parse after the leaky \d{4}-\d{2}-\d{2} regex).
Activity