mirror of
https://github.com/morluto/rea.git
synced 2026-11-22 22:45:47 +00:00
fix(elf): retain readable build IDs beside compressed notes (#12674)
This commit is contained in:
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 &&
|
||||
|
||||
Reference in new issue
Block a user