diff options
author | David Faure <david.faure@kdab.com> | 2014-08-25 13:53:44 +0200 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2014-09-10 08:28:11 +0200 |
commit | 507fff201bcafc1c28397e7008d8fbfe4c6ffb38 (patch) | |
tree | 787a0a5fdaebc60edb16fdc30cd80e70c03f8294 /src/plugins/platforms | |
parent | 3e804976687ce3dbe424ae5dfa47bba0a6280ce1 (diff) |
qsql ibase: fix memory corruption due to LONG being 4 bytes in firebird.
As fb_types.h says, Firebird requires (S)LONG to be 32 bit, and it defines
SLONG to int. This leads to sqllen being 4, so qsql_ibase.cpp allocates
4 bytes... and was writing 8 bytes into it.
Fixed by checking sqllen, the same way QIBaseResult::gotoNext does.
Change-Id: Ie8680d32f98c354dfc8430b8efbfe95450556956
Reviewed-by: Mark Brand <mabrand@mabrand.nl>
Diffstat (limited to 'src/plugins/platforms')
0 files changed, 0 insertions, 0 deletions