[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

gEDA-cvs: branch: master updated (1.1.0-20070705-15-g0f3c0cd)



The branch, master has been updated
       via  0f3c0cd8ba29cb9935fb3f6dfff52ca53f8935af (commit)
       via  b6f9ed0ba8af7ed6e380bb6752bc553240f1b04c (commit)
      from  3cf1cca33ed2e567b959ad8486cad0d4cdbb47e9 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


=========
 Summary
=========

 libgeda/src/u_basic.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


=================
 Commit Messages
=================

commit b6f9ed0ba8af7ed6e380bb6752bc553240f1b04c
Author: Carlos Nieves Onega <cnieves@xxxxxxxxxx>
Date:   Sun Jul 8 20:57:30 2007 +0200

    Added string != NULL check in u_basic_breakup_string.
    
    The lack of this check can be the cause of a segfault (bug #1748153).
    Programs shouldn't pass NULL strings to this function.

:100644 100644 5d1bd7d... 2a80673... M	libgeda/src/u_basic.c

=========
 Changes
=========

commit b6f9ed0ba8af7ed6e380bb6752bc553240f1b04c
Author: Carlos Nieves Onega <cnieves@xxxxxxxxxx>
Date:   Sun Jul 8 20:57:30 2007 +0200

    Added string != NULL check in u_basic_breakup_string.
    
    The lack of this check can be the cause of a segfault (bug #1748153).
    Programs shouldn't pass NULL strings to this function.

diff --git a/libgeda/src/u_basic.c b/libgeda/src/u_basic.c
index 5d1bd7d..2a80673 100644
--- a/libgeda/src/u_basic.c
+++ b/libgeda/src/u_basic.c
@@ -58,6 +58,8 @@ char *u_basic_breakup_string(char *string, char delimiter, int count)
   int done=FALSE;
   char *return_value;
 
+  g_assert(string != NULL);
+
   /* skip over any leading white space */
   while(string[i] == ' ' && !string[i]) {
     i++;




_______________________________________________
geda-cvs mailing list
geda-cvs@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-cvs