fix(elf): retain readable build IDs beside compressed notes (#12674)

This commit is contained in:
morluto authored and GitHub committed 2026-11-20 02:02:45 +00:00
1 parent 460517d1b7
commit 0fcbfe83dc
7 files changed
+246 -70

No files matched your search

@@ -265,13 +265,13 @@ const buildIdConsistent = (buildId: ElfDebugLink["build_id"]): boolean => {
buildId.reason === null
);
if (buildId.status === "unknown")
// An oversized build-id keeps the bounded ids read beside it.
// Unsupported storage and oversized notes can coexist with readable IDs.
return (
buildId.hex === null &&
(buildId.reason === "build_id_exceeds_limit" ||
(buildId.ids.length === 0 &&
(buildId.reason === "note_tables_malformed" ||
buildId.reason === "note_tables_unsupported")))
buildId.reason === "note_tables_unsupported" ||
(buildId.reason === "note_tables_malformed" &&
buildId.ids.length === 0))
);
return (
buildId.hex === null &&