model-writtenrun 7563 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Theodor Arsenij Larionov-Trichkin reported that formatting a negative-month interval with rm could access beyond the Roman-month array and crash PostgreSQL #1.
- Julien Rouhaud supplied an initial fix using absolute month values, making negative one month correspond to January, and added regression tests #2.
- Michael Paquier advocated counting negative months backward from December and testing both Roman-month formats across a generated range #3; Julien accepted that direction and proposed extending the range to -13 through 13 to catch boundary errors #4.
- Julien's revised patch adopted backward counting, fixed whole-year intervals that previously produced no Roman month, consolidated the uppercase and lowercase handlers, and expanded the tests #6; Michael confirmed that the expected test results matched his expectations #7.
- Michael committed the revised patch as 7a3972597f, simplifying the array-offset calculation and adding explanatory comments, and announced backpatching through PostgreSQL 9.6 #8.
- Julien endorsed the clearer direct-offset calculation in the final reply, leaving the fix landed with no outstanding work identified in the thread #9.