model-writtenrun 6868 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Tom Lane proposed cleaning up contrib/pgcrypto/crypt-des.c in #1 after buildfarm warnings about buffer overruns, using a union of byte and word arrays to remove dubious casts and redundant copies while simplifying pointer-loop termination.
- Ayush Tiwari reviewed the patch favorably in #2, pointed to an existing proposal for the obscure loop, and said he would close its CommitFest item.
- Nathan Bossart suggested indexed loops in #3, arguing that eliminating the pointer variable would improve readability and give the compiler a better chance of avoiding the warnings.
- Tom reported in #4 that the earlier discussion enabled him to reproduce the warning with recent GCC at -O3, discovered that his attached patch did not fix it, and verified that an indexed loop using size_t and lengthof suppressed it with GCC 16.2.1.
- Tom committed the cleanup from #1 with revised indexed loops drawing on Ayush's earlier work in thread #139517 as 35136da00e, credited Ayush as co-author, and confirmed in the thread's final message #5 that he had adopted something close to Ayush's variant; the change landed and was backpatched through PostgreSQL 14.