model-writtenrun 5713 - may be wrong, links go to the source messages. Commit-by-commit LLM analysis is in the Commits dialog.
- Zhihong Yu reported a sanitizer warning about shifting 65535 into the sign bit and supplied a patch casting the high half to BlockNumber before shifting in #1.
- Tom Lane agreed the expression was incorrect but could not reproduce the warning with his clang builds; Zhihong supplied the test provenance and compiler flags in #5 and #7, while Tom's testing exposed separate null-pointer library calls in #6.
- Andres Freund urged fixing the null-pointer cases in #8, and Tom Lane supplied an independent cleanup in #11 that passed his sanitizer-enabled check-world run and also avoided converting negative infinity to an integer during numeric logarithm estimation.
- Andres Freund recommended backpatching the cleanup to support sanitizer buildfarm testing in #12, and Tom Lane agreed in #13; their discussion also identified platform-dependent system-header annotations as a reason sanitizer results differed.
- Andres Freund analyzed the original warning and suggested a TID reproducer in #14, while Zhihong Yu clarified that his environment used Yugabyte's PostgreSQL 11-based subtree in #15.
- At the thread's last message, Tom Lane still could not reproduce the shift warning, but his boundary-value experiments exposed silent tidin() overflow, which he volunteered to fix in #16.
- Tom Lane committed the sanitizer cleanup from #11 with one additional pgcrypto memcpy guard as 46ab07ffda and backpatched it to all supported branches.
- Zhihong Yu's cast fix from #1 landed with cosmetic cast adjustments and backports as 0fbdfaf79d; Tom Lane separately removed redundant block.h casts and assertions in 8134fe4ad8, keeping that cosmetic cleanup on the development branch.
- The overflow issue discovered in #16 became f7ea240aa7, which tightened tidin() conversion checks and added boundary regression tests; all attached work subsequently landed, although the thread never resolved why the original shift warning reproduced only in the reporting environment.