Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Round the note size up correctly.
Andrew Turner committed 11 years ago
commit a6eafc2fe021a8c875faf004109106bba1901b96
parent ac5412b
1 file changed +1 -1
modified libpkg/pkg_elf.c
@@ -742,7 +742,7 @@ pkg_get_myarch_elfparse(char *dest, size_t sz)
		src += sizeof(Elf_Note);
		if (note.n_type == NT_VERSION)
			break;
-
		src += note.n_namesz + note.n_descsz;
+
		src += roundup2(note.n_namesz + note.n_descsz, 4);
	}
	if ((uintptr_t)src >= ((uintptr_t)data->d_buf + data->d_size)) {
		ret = EPKG_FATAL;