mirror of
https://github.com/openXC7/prjxray.git
synced 2026-09-01 18:36:33 +02:00
fcd561fb ('fix build with recent gcc') turned in_bytes from a copying
std::vector into an absl::Span, but left both byte owners scoped to
their if/else blocks: the MemoryMappedFile was destroyed (munmap) and
the stdin vector freed before absl::visit parsed the bitstream. Every
bitread invocation since then crashes with SIGSEGV in the sync-word
search over unmapped memory -- which also takes bit2fasm down with it.
Hoist the owners to function scope so they outlive the parse.