Fix integer overflow

See oss-fuzz/28790
This commit is contained in:
Evan Miller
2020-12-18 11:22:52 -05:00
parent c46c8b0e4d
commit 16d249748a
2 changed files with 15 additions and 12 deletions

View File

@@ -1587,7 +1587,7 @@ SQLRETURN SQL_API SQLGetData(
// returns text if old odbc
case MDB_DATETIME:
{
struct tm tmp_t;
struct tm tmp_t = { 0 };
mdb_date_to_tm(mdb_get_double(mdb->pg_buf, col->cur_value_start), &tmp_t);
if (mdb_col_is_shortdate(col)) {