]> git.eshelyaron.com Git - emacs.git/commit
Fix replace-buffer-contents undefined behavior
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 22 Mar 2021 01:08:13 +0000 (18:08 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 25 Mar 2021 15:13:12 +0000 (08:13 -0700)
commit6a4ed891d84b1ca1e4d68a6de9dd374f1fadd971
tree3a950065f2e0da076faca86a6653f81d2899c69a
parent720a8b17f8f48f2bc7d59dc71be1d5fc35f0964b
Fix replace-buffer-contents undefined behavior

* src/editfns.c (Freplace_buffer_contents): Avoid undefined
behavior with competing side effects in parallel subexpressions.
Problem reported by Apple clang version 12.0.0 (clang-1200.0.32.29).
src/editfns.c