model-writtenrun 3592 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Oleg Tselebrovskiy reported a static-analysis finding that intoasc() omitted its output string's terminating zero byte and proposed replacing memcpy() with strcpy(), matching neighboring functions #1.
- Ashutosh Bapat confirmed the strcpy() precedent and requested a test #2, after which Oleg supplied a reproducer showing leftover buffer contents appended to the interval string #3.
- Oleg expanded the patch to check four potentially failing allocations in timestamp parsing while retaining the original intoasc() fix #4.
- Michael Paquier confirmed the allocation failures needed handling and clarified that the reproducer should become an automated regression test #5; Oleg then submitted both fixes with integrated intoasc() test coverage #6.
- Michael split the final patch into the timestamp allocation checks, committed with spacing cleanup as 0a9118ccc0, and the unchanged intoasc() fix with tests as e77a1c58e3, both drawn from #6.
- Michael closed the thread by confirming that the allocation checks landed on HEAD and the termination fix was backpatched to all supported stable branches; safer bounded copying remained unimplemented because the existing APIs lack buffer lengths and would require incompatible changes or new interfaces #7.