Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
elf: when parsing ABI's do not analyse NULL notes
Baptiste Daroussin committed 1 year ago
commit 67fa30b4f0521b496e3901afab4a91c735ad2915
parent 27b286a
1 file changed +2 -0
modified libpkg/pkg_elf.c
@@ -582,6 +582,8 @@ elf_parse_abi(Elf *elf, GElf_Ehdr *ehdr, struct pkg_abi *abi)
			 * loop over all the note section and override what
			 * should be overridden if any
			 */
+
			if (data == NULL)
+
				continue;
			elf_note_analyse(data, ehdr, abi);
		}
	}