Browse Source

- Fixed possible off-by-one overflow in ibase_gen_id()

pull/12/head
Felipe Pena 15 years ago
parent
commit
a82a9e8f74
  1. 5
      ext/interbase/interbase.c

5
ext/interbase/interbase.c

@ -1424,6 +1424,11 @@ PHP_FUNCTION(ibase_gen_id)
&inc, &link)) {
RETURN_FALSE;
}
if (gen_len > 31) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Invalid generator name");
RETURN_FALSE;
}
PHP_IBASE_LINK_TRANS(link, ib_link, trans);

Loading…
Cancel
Save