From 0630e3bc03ba3ccb9c7ca974ebab7aaa98322444 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Thu, 5 Jul 2018 17:23:47 +0200 Subject: Reduce error buffer size 120 bytes is ample, the doc says. --- ext/pgsql/pgsql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/pgsql') diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 1235781d98..d22b6dfc59 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -5759,7 +5759,7 @@ static int php_pgsql_convert_match(const char *str, size_t str_len, const char * re = pcre2_compile((PCRE2_SPTR)regex, regex_len, options, &errnumber, &err_offset, php_pcre_cctx()); if (NULL == re) { - PCRE2_UCHAR err_msg[256]; + PCRE2_UCHAR err_msg[128]; pcre2_get_error_message(errnumber, err_msg, sizeof(err_msg)); php_error_docref(NULL, E_WARNING, "Cannot compile regex: '%s'", err_msg); return FAILURE; -- cgit v1.2.1