RegexEngine.cc uses std::uint32_t without including <cstdint>; libc++
pulls it in transitively, libstdc++ does not.
The in-place save for hard-linked files read the mode after opening
with O_TRUNC, but Linux clears setuid/setgid on that truncate, so the
bits were lost. Read the mode first, then ftruncate.
Two undo tests compared Buffer::AsString(), a debug label, instead of
the contents, so they only checked line counts; the random-edits test
also deleted from an empty buffer under libstdc++'s RNG sequence.
Compare ContentView() instead.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>