18 Aug
2011
18 Aug
'11
7:13 a.m.
On Wed, Aug 17, 2011 at 04:54:56PM +0200, Lukas Fleischer wrote:
Avoid invoking unlink() with a NULL path if the URL isn't to a file and we fail to create a temporary file.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de> --- lib/libalpm/dload.c | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
Note that this still isn't fixed with the latest refactoring (not sure if 9f139550 was supposed to fix this). If we fail to create a temporary file (around line 224), tempfile still points to NULL and the unlink() invocation might result in a segfault.