]> git.ipfire.org Git - thirdparty/apache/httpd.git/commit
Merge r1872394 from trunk
authorChristophe Jaillet <jailletc36@apache.org>
Sun, 8 Mar 2020 10:29:54 +0000 (10:29 +0000)
committerChristophe Jaillet <jailletc36@apache.org>
Sun, 8 Mar 2020 10:29:54 +0000 (10:29 +0000)
commitd36314923304c56f050709408f07609220a0a309
treea0c429f60066138ef91b1e2f8d733ff429b12b6f
parent6c0b37b76f3ff9738f296bd1dbd616879d695f9a
Merge r1872394 from trunk

   * In winnt_accept() (server/mpm/winnt/child.c), there's a call to PostQueuedCompletionStatus() with a buffer (BytesRead) for the number of bytes read.

When compiling the code with Visual Studio 2019 (v 16.3.10), we get a warning than BytesRead is not initialized. When using /RTCu (run-time checks for uninitialzed variables), the program crashes on this line with an exception.

If we initialize the variable to 0, the problem is solved.

PR: 63965
Submitted by: gbechis
Reviewed by: gbechis,jailletc36 (+ CTR rule for non-Unix, single-platform code)
Backported by: jailletc36

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1874971 13f79535-47bb-0310-9956-ffa450edef68
server/mpm/winnt/child.c