From 6e7c160195a60297e32d334cdf6d6fb073f52e73 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 7 Oct 2014 11:02:12 +0200 Subject: [PATCH] lib/fetch/file.c: CID 62701 (NULL pointer dereference) --- lib/fetch/file.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/fetch/file.c b/lib/fetch/file.c index 14640bed..9def4ee3 100644 --- a/lib/fetch/file.c +++ b/lib/fetch/file.c @@ -210,6 +210,11 @@ fetchStatFile(struct url *u, struct url_stat *us, const char *flags) (void)flags; + if (us == NULL) { + fetch_syserr(); + return -1; + } + if ((path = fetchUnquotePath(u)) == NULL) { fetch_syserr(); return -1;