Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: commits

[6705] cherokee/trunk/cherokee/plugin_loader.c: "Pointer 'entry' returned from call to function 'malloc' at line 374

 

 

Cherokee commits RSS feed   Index | Next | Previous | View Threaded


cherokee at cherokee-project

May 23, 2011, 4:19 AM

Post #1 of 1 (66 views)
Permalink
[6705] cherokee/trunk/cherokee/plugin_loader.c: "Pointer 'entry' returned from call to function 'malloc' at line 374

Revision: 6705
http://svn.cherokee-project.com/changeset/6705
Author: alo
Date: 2011-05-23 13:19:18 +0200 (Mon, 23 May 2011)
Log Message:
-----------
"Pointer 'entry' returned from call to function 'malloc' at line 374
may be NULL and will be dereferenced at line 375." Klocwork Issue 92

Modified Paths:
--------------
cherokee/trunk/cherokee/plugin_loader.c

Modified: cherokee/trunk/cherokee/plugin_loader.c
===================================================================
--- cherokee/trunk/cherokee/plugin_loader.c 2011-05-23 11:16:03 UTC (rev 6704)
+++ cherokee/trunk/cherokee/plugin_loader.c 2011-05-23 11:19:18 UTC (rev 6705)
@@ -377,6 +377,10 @@
/* Add new entry
*/
entry = malloc (sizeof(entry_t));
+ if (entry == NULL) {
+ return ret_nomem;
+ }
+
entry->dlopen_ref = dl_handle;
entry->info = info;
entry->built_in = false;

Cherokee commits RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.