fix #27
authorMichael Wallner <mike@php.net>
Mon, 8 Jan 2018 09:51:07 +0000 (10:51 +0100)
committerMichael Wallner <mike@php.net>
Mon, 8 Jan 2018 09:51:07 +0000 (10:51 +0100)
A left over int/size_t conversion of a string argument in
pq\Connection::escapeBytea() was discovered.

src/php_pqconn.c

index d0ddfef..f66ae0c 100644 (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);