|
From: <vl...@us...> - 2012-12-20 02:20:30
|
Revision: 4656
http://scst.svn.sourceforge.net/scst/?rev=4656&view=rev
Author: vlnb
Date: 2012-12-20 02:20:24 +0000 (Thu, 20 Dec 2012)
Log Message:
-----------
scst_get_unique_sess_name(): Handle out-of-memory properly
Return NULL instead of triggering a NULL pointer dereference if out
of memory. Detected by Coverity.
Signed-off-by: Bart Van Assche <bva...@ac...>
Modified Paths:
--------------
trunk/scst/src/scst_targ.c
Modified: trunk/scst/src/scst_targ.c
===================================================================
--- trunk/scst/src/scst_targ.c 2012-12-20 02:17:23 UTC (rev 4655)
+++ trunk/scst/src/scst_targ.c 2012-12-20 02:20:24 UTC (rev 4656)
@@ -6474,6 +6474,7 @@
PRINT_ERROR("Unable to allocate a "
"replacement name (size %d)",
len);
+ break;
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|