Welcome! Log In Create A New Profile

Advanced

[nginx] Valgrind: another complaint about uninitialized bytes.

Maxim Dounin
June 18, 2013 10:25AM
details: http://hg.nginx.org/nginx/rev/982678c5c270
branches:
changeset: 5252:982678c5c270
user: Tatsuhiko Kubo <cubicdaiya@gmail.com>
date: Wed Jun 12 00:41:24 2013 +0900
description:
Valgrind: another complaint about uninitialized bytes.

diffstat:

src/os/unix/ngx_channel.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff --git a/src/os/unix/ngx_channel.c b/src/os/unix/ngx_channel.c
--- a/src/os/unix/ngx_channel.c
+++ b/src/os/unix/ngx_channel.c
@@ -34,6 +34,8 @@ ngx_write_channel(ngx_socket_t s, ngx_ch
msg.msg_control = (caddr_t) &cmsg;
msg.msg_controllen = sizeof(cmsg);

+ ngx_memzero(&cmsg, sizeof(cmsg));
+
cmsg.cm.cmsg_len = CMSG_LEN(sizeof(int));
cmsg.cm.cmsg_level = SOL_SOCKET;
cmsg.cm.cmsg_type = SCM_RIGHTS;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[nginx] Valgrind: another complaint about uninitialized bytes.

Maxim Dounin 557 June 18, 2013 10:25AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 168
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready