Browse Source

Merge branch 'PHP-5.3' into PHP-5.4

* PHP-5.3:
  Fixed Bug #64949 (Buffer overflow in _pdo_pgsql_error)
PHP-5.4.17
Remi Collet 13 years ago
parent
commit
2dd67abb7d
  1. 2
      ext/pdo_pgsql/pgsql_driver.c

2
ext/pdo_pgsql/pgsql_driver.c

@ -76,7 +76,7 @@ int _pdo_pgsql_error(pdo_dbh_t *dbh, pdo_stmt_t *stmt, int errcode, const char *
einfo->errmsg = NULL;
}
if (sqlstate == NULL) {
if (sqlstate == NULL || strlen(sqlstate) >= sizeof(pdo_error_type)) {
strcpy(*pdo_err, "HY000");
}
else {

Loading…
Cancel
Save