Changeset: 8aeaf767043e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/8aeaf767043e
Modified Files:
sql/backends/monet5/sql_scenario.c
Branch: binresultset
Log Message:
Avoid infinite loop when client sends invalid X command
diffs (11 lines):
diff --git a/sql/backends/monet5/sql_scenario.c
b/sql/backends/monet5/sql_scenario.c
--- a/sql/backends/monet5/sql_scenario.c
+++ b/sql/backends/monet5/sql_scenario.c
@@ -1100,6 +1100,7 @@ SQLparser(Client c)
}
in->pos = in->len; /* HACK: should use parsed length */
msg = createException(SQL, "SQLparser", SQLSTATE(42000)
"Unrecognized X command: %s\n", in->buf + in->pos);
+ in->pos = in->len; // consume the command
goto finalize;
}
if (be->language !='S') {
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]