Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix crash analyzing linux shlibs
Bryan Drewery committed 12 years ago
commit fa1fc23d94c42886eaee851a43e0f7338d887901
parent 67ba2fe
1 file changed +4 -0
modified libpkg/pkg_elf.c
@@ -264,6 +264,10 @@ analyse_elf(struct pkg *pkg, const char *fpath,
			ret = EPKG_END; /* Some error occurred, ignore this file */
			goto cleanup;
		}
+
		if (data->d_buf == NULL) {
+
			ret = EPKG_END; /* No osname available */
+
			goto cleanup;
+
		}
		osname = (const char *) data->d_buf + sizeof(Elf_Note);
		if (strncasecmp(osname, "freebsd", sizeof("freebsd")) != 0 &&
		    strncasecmp(osname, "dragonfly", sizeof("dragonfly")) != 0) {