From: Michael Wallner Date: Mon, 8 Jan 2018 09:51:07 +0000 (+0100) Subject: fix #27 X-Git-Tag: v2.1.3~3 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=commitdiff_plain;h=868303fdfb0322ada371db96cba7cb91c7b254dc fix #27 A left over int/size_t conversion of a string argument in pq\Connection::escapeBytea() was discovered. --- diff --git a/src/php_pqconn.c b/src/php_pqconn.c index d0ddfef..f66ae0c 100644 --- a/src/php_pqconn.c +++ b/src/php_pqconn.c @@ -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);