com php-src: Fix potential heap corruption: ext/sockets/sockets.c

From: Date: Sat, 12 Oct 2019 14:16:14 +0000
Subject: com php-src: Fix potential heap corruption: ext/sockets/sockets.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-108898@lists.php.net to get a copy of this message
Commit: c10d3d3a35b54945456dcd6208d09c86dec32b56 Author: Christoph M. Becker <cmbecker69@gmx.de> Sat, 12 Oct 2019 16:14:27 +0200 Parents: 586f8515d5ff6e16700ea1ba0d6e196e2c59b45d Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=c10d3d3a35b54945456dcd6208d09c86dec32b56 Log: Fix potential heap corruption tmp is allocated by malloc(), so we must not LocalFree() it. Changed paths: M ext/sockets/sockets.c Diff: diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c index 21538e92e10..dd0023f46c2 100644 --- a/ext/sockets/sockets.c +++ b/ext/sockets/sockets..c @@ -659,7 +659,7 @@ char *sockets_strerror(int error) /* {{{ */ } SOCKETS_G(strerror_buf) = estrdup(tmp); - LocalFree(tmp); + free(tmp); buf = SOCKETS_G(strerror_buf); }

« previous php.cvs (#108898) next »