summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorHiroshi Inoue2017-07-19 20:31:00 +0000
committerHiroshi Inoue2017-07-19 22:48:04 +0000
commit0deb10ad8ed70e4785169d15e70b6aa8c3ebaa47 (patch)
tree9ad86177307b1b004d1053d7bc752f1e57e2fc8f /execute.c
parent6e13fa1634c3206559559e5761961efccbad85a7 (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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/execute.c b/execute.c
index 09b8560..2137bf2 100644
--- a/execute.c
+++ b/execute.c
@@ -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;