Welcome! Log In Create A New Profile

Advanced

[nginx] Mail: fixed possible uninitialized memory access.

Maxim Dounin
June 05, 2013 12:12PM
details: http://hg.nginx.org/nginx/rev/b6562f98bfd8
branches:
changeset: 5246:b6562f98bfd8
user: Maxim Dounin <mdounin@mdounin.ru>
date: Wed Jun 05 19:44:23 2013 +0400
description:
Mail: fixed possible uninitialized memory access.

Found by Valgrind.

diffstat:

src/mail/ngx_mail_parse.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff --git a/src/mail/ngx_mail_parse.c b/src/mail/ngx_mail_parse.c
--- a/src/mail/ngx_mail_parse.c
+++ b/src/mail/ngx_mail_parse.c
@@ -842,6 +842,10 @@ ngx_mail_auth_parse(ngx_mail_session_t *
}
#endif

+ if (s->args.nelts == 0) {
+ return NGX_MAIL_PARSE_INVALID_COMMAND;
+ }
+
arg = s->args.elts;

if (arg[0].len == 5) {

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

[nginx] Mail: fixed possible uninitialized memory access.

Maxim Dounin 696 June 05, 2013 12:12PM



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

Online Users

Guests: 301
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready