rpm/rpm-5.4.7-rpmds-dont-try-fopen-empty-filenames.patch
2013-03-27 12:51:15 +04:00

11 lines
359 B
Diff

--- rpm-5.4.7/lib/rpmds.c.ds_stat~ 2012-03-13 19:42:38.344711524 +0100
+++ rpm-5.4.7/lib/rpmds.c 2012-03-13 19:42:47.633723723 +0100
@@ -2961,6 +2961,8 @@ static char *find_elf_interpreter(GElf_E
size_t shstrndx;
if (filename) {
+ if (!*filename)
+ return NULL;
if (!(fp = fopen(filename, "r"))) {
perror(filename);
return NULL;