com php-src: Merge branch 'PHP-7.2': ext/pdo_firebird/firebir d_statement.c win32/wsyslog.c

From: Date: Fri, 06 Jul 2018 14:08:57 +0000
Subject: com php-src: Merge branch 'PHP-7.2': ext/pdo_firebird/firebir d_statement.c win32/wsyslog.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-102450@lists.php.net to get a copy of this message
Commit: ed23cea9de71fa95ffb23c9601defafe351d8b12 Author: Anatol Belski <ab@php.net> Fri, 6 Jul 2018 16:08:57 +0200 Parents: b0ca997405f96ad3e1bfa30ca3e9de02242b7f20 d85651d58db45fff28fe63570957539afa332ff4 Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ed23cea9de71fa95ffb23c9601defafe351d8b12 Log: Merge branch 'PHP-7.2' * PHP-7.2: Fix event log handling in startup phase Fix bug #76488 Memory leak when fetching a BLOB field Bugs: https://bugs.php.net/76488 Changed paths: MM ext/pdo_firebird/firebird_statement.c MM win32/wsyslog.c Diff: diff --cc win32/wsyslog.c index aebb42d,73f9969..695c7db --- a/win32/wsyslog.c +++ b/win32/wsyslog.c @@@ -146,8 -125,11 +146,10 @@@ void openlog(const char *ident, int log closelog(); PW32G(log_source) = RegisterEventSource(NULL, "PHP-" PHP_VERSION); - spprintf(&PW32G(log_header), 0, (logopt & LOG_PID) ? "%s[%d]" : "%s", ident, getpid()); + header_len = strlen(ident) + 2 + 11; + PW32G(log_header) = malloc(header_len*sizeof(char)); + sprintf_s(PW32G(log_header), header_len, (logopt & LOG_PID) ? "%s[%d]" : "%s", ident, getpid()); } - /* * Local variables: * tab-width: 4

« previous php.cvs (#102450) next »