model-writtenrun 3362 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Jacob Champion proposed an explicit input-end check and regression test in #1 after finding that JSON error handling could overread non-null-terminated input, particularly relevant to frontend parsing of untrusted data for his OAuth work.
- Michael Paquier requested calculating the boundary before assigning token_terminator, removing the unused helper from HEAD, and explaining the test's two possible errors in #2; Jacob incorporated these changes in #3, which Michael provisionally accepted in #4.
- Discussion broadened to readable encoding errors: Michael suggested suppressing incomplete sequences and reporting input positions in #5, Peter Eisentraut pointed to report_invalid_encoding() as a precedent in #7, and Jacob raised frontend input/output encoding limitations in #8.
- Michael examined discarding the entire incomplete sequence but found that other error paths would still expose it, so he recommended fixing the overread first and deferring broader error-reporting changes in #11; Jacob agreed in #12 and connected future improvements to client-encoding work needed for OAuth.
- Michael committed the bounds fix and regression test from #3 as 855517307d, making only cosmetic test edits while separating the unused-helper removal into planned HEAD-only cleanup.
- Michael confirmed backpatching through PostgreSQL 13 in #13, and Jacob closed with thanks in #14; the overread fix had landed, while readable incomplete-sequence errors and broader client-encoding support remained future work.