[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnurl] 115/178: mime: avoid NULL pointer dereference risk
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnurl] 115/178: mime: avoid NULL pointer dereference risk |
Date: |
Wed, 23 May 2018 12:25:50 +0200 |
This is an automated email from the git hooks/post-receive script.
ng0 pushed a commit to branch master
in repository gnurl.
commit ba67f7d65a42e63eccfe0bcc87f82682d6e4cc9e
Author: Daniel Stenberg <address@hidden>
AuthorDate: Tue Apr 24 11:33:29 2018 +0200
mime: avoid NULL pointer dereference risk
Coverity detected, CID 1435120
Closes #2527
---
lib/mime.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/mime.c b/lib/mime.c
index ce56d7873..4c0d2eeba 100644
--- a/lib/mime.c
+++ b/lib/mime.c
@@ -1205,7 +1205,7 @@ CURLcode Curl_mime_duppart(curl_mimepart *dst, const
curl_mimepart *src)
res = curl_mime_filename(dst, src->filename);
/* If an error occurred, rollback. */
- if(res)
+ if(res && dst)
Curl_mime_cleanpart(dst);
return res;
--
To stop receiving notification emails like this one, please contact
address@hidden
- [GNUnet-SVN] [gnurl] 73/178: mailmap: add a monnerat fixup [ci skip], (continued)
- [GNUnet-SVN] [gnurl] 73/178: mailmap: add a monnerat fixup [ci skip], gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 64/178: build: cleanup to fix clang warnings/errors, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 56/178: build-openssl.bat: Refer to VS2017 as VC14.1 instead of VC15, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 116/178: strcpy_url: only %-encode values >= 0x80, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 105/178: curl_global_sslset: always provide available backends, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 86/178: winbuild: Support custom devel paths for each dependency, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 100/178: Revert "ftplistparser: keep state between invokes", gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 103/178: curl.1: clarify that options and URLs can be mixed, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 119/178: RELEASE-NOTES: synced, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 114/178: ctype: restore character classification for non-ASCII platforms, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 115/178: mime: avoid NULL pointer dereference risk,
gnunet <=
- [GNUnet-SVN] [gnurl] 129/178: TODO: Support the clienthello extension, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 131/178: KNOWN_BUGS: Connection information when using TCP Fast Open, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 136/178: wolfssl: Fix non-blocking connect, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 76/178: checksrc: Fix typo, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 63/178: examples/sftpuploadresmue: Fix Windows large file seek, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 71/178: travis: build libpsl and make builds use it, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 78/178: vauth: Fix typo, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 81/178: urldata: make service names unconditional, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 67/178: winbuild: fix URL, gnunet, 2018/05/23
- [GNUnet-SVN] [gnurl] 72/178: proxy: show getenv proxy use in verbose output, gnunet, 2018/05/23