fixed bug

This commit is contained in:
2026-02-04 19:10:06 +03:00
parent 8dd044fa1e
commit dbad87de0f

View File

@@ -194,6 +194,11 @@ namespace
if (!file.read(reinterpret_cast<char*>(&segment), sizeof(segment))) [[unlikely]]
return std::nullopt;
if (!segment.nsects)
{
cmd_offset += static_cast<std::streamoff>(lc.cmdsize);
continue;
}
std::streamoff sect_offset = cmd_offset + static_cast<std::streamoff>(sizeof(segment));
for (std::uint32_t j = 0; j < segment.nsects; ++j)