Changeset: f2c23a2c31bb for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=f2c23a2c31bb
Modified Files:
        sql/src/common/sql_string.mx
Branch: Jun2010
Log Message:

Protect call to isspace: only EOF and values in the range 0..0xFF are allowed.


diffs (12 lines):

diff -r 790f0ba8547e -r f2c23a2c31bb sql/src/common/sql_string.mx
--- a/sql/src/common/sql_string.mx      Fri Jul 23 14:49:50 2010 +0200
+++ b/sql/src/common/sql_string.mx      Fri Jul 23 16:02:10 2010 +0200
@@ -118,7 +118,7 @@
 {
        char *res = s;
 
-       for (; *s && isspace(*s); s++)
+       for (; *s > 0 && isspace(*s); s++)
                ;
        for (; *s && *s == '0'; s++)
                ;
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to