Fix a possible buffer overflow.
[GB.DB.POSTGRESQL] * BUG: Fix a possible buffer overflow.
This commit is contained in:
parent
7475109afe
commit
cdeb7484cc
1 changed files with 2 additions and 2 deletions
|
@ -1335,7 +1335,7 @@ static int commit_transaction(DB_DATABASE *db)
|
|||
}
|
||||
else
|
||||
{
|
||||
char buffer[8];
|
||||
char buffer[16];
|
||||
sprintf(buffer, "%d", trans);
|
||||
return do_query(db, "Unable to commit transaction: Unable to release savepoint: &1", NULL, "RELEASE SAVEPOINT t&1", 1, buffer);
|
||||
}
|
||||
|
@ -1366,7 +1366,7 @@ static int rollback_transaction(DB_DATABASE *db)
|
|||
}
|
||||
else
|
||||
{
|
||||
char buffer[8];
|
||||
char buffer[16];
|
||||
sprintf(buffer, "%d", trans);
|
||||
return do_query(db, "Unable to begin transaction: &1", NULL, "ROLLBACK TO SAVEPOINT t&1", 1, buffer);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue