1
0
mirror of https://github.com/danog/ext-pq.git synced 2025-01-22 13:51:20 +01:00
A left over int/size_t conversion of a string argument in
pq\Connection::escapeBytea() was discovered.
This commit is contained in:
Michael Wallner 2018-01-08 10:51:07 +01:00
parent 34c0954363
commit 868303fdfb
No known key found for this signature in database
GPG Key ID: 480E3E14B0A4C7C7

View File

@ -1571,7 +1571,7 @@ ZEND_BEGIN_ARG_INFO_EX(ai_pqconn_escape_bytea, 0, 0, 1)
ZEND_END_ARG_INFO();
static PHP_METHOD(pqconn, escapeBytea) {
char *str;
int len;
size_t len;
if (SUCCESS == zend_parse_parameters(ZEND_NUM_ARGS(), "s", &str, &len)) {
php_pqconn_object_t *obj = PHP_PQ_OBJ(getThis(), NULL);