diff options
author | Hiroshi Inoue | 2017-07-19 20:31:00 +0000 |
---|---|---|
committer | Hiroshi Inoue | 2017-07-19 22:48:04 +0000 |
commit | 0deb10ad8ed70e4785169d15e70b6aa8c3ebaa47 (patch) | |
tree | 9ad86177307b1b004d1053d7bc752f1e57e2fc8f /execute.c | |
parent | 6e13fa1634c3206559559e5761961efccbad85a7 (diff) |
Fix buffer truncations reported by Pavel Raiskup.
The truncations occured when concatenating 'RELEASE xxxx...;' and 'SAVEPOINT xxxx....'.
Diffstat (limited to 'execute.c')
-rw-r--r-- | execute.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -588,7 +588,7 @@ inolog("%s:%p->external=%d\n", func, stmt, stmt->external); int GenerateSvpCommand(ConnectionClass *conn, int type, char *cmd, int buflen) { - char esavepoint[32]; + char esavepoint[50]; int rtn = -1; cmd[0] = '\0'; @@ -621,7 +621,7 @@ RETCODE SetStatementSvp(StatementClass *stmt, unsigned int option) { CSTR func = "SetStatementSvp"; - char cmd[64]; + char cmd[128]; ConnectionClass *conn = SC_get_conn(stmt); QResultClass *res; RETCODE ret = SQL_SUCCESS_WITH_INFO; |