model-writtenrun 3154 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Alexander Kuznetsov proposed detecting empty input in get_th() with a user-facing error to prevent indexing before the buffer, while acknowledging that he had found no caller supplying empty input #1.
- Peter Eisentraut suggested that an assertion would suffice if empty input could not occur in practice #2.
- Alexander Kuznetsov explained that his error check followed the existing handling of non-numeric input, but left the assertion-versus-error decision open #3.
- The fix from #1 landed as Assert(len > 0) in c61d51d500, whose commit message explains that all current callers supply a string containing a freshly printed number.
- Peter Eisentraut closed the thread by reporting that further internal consultations had led him to commit the assertion version, leaving no outstanding patch revision #6.