Changeset: 2ccdfdce8e6b for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=2ccdfdce8e6b
Modified Files:
        clients/mapiclient/tomograph.c
Branch: default
Log Message:

Protect against wrong input.


diffs (12 lines):

diff --git a/clients/mapiclient/tomograph.c b/clients/mapiclient/tomograph.c
--- a/clients/mapiclient/tomograph.c
+++ b/clients/mapiclient/tomograph.c
@@ -1723,6 +1723,8 @@ static int parser(char *row)
        } else {
                state = 0;
                c = strchr(c + 1, (int) '"');
+               if ( c == 0)
+                       return -2;
        }
 
        c = strchr(c + 1, (int) '"');
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to