Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Thu, 19 May 2016 17:28:58 +0200
From: John Regehr <>
Subject: uninitialized variable

This call:

regcomp(&r, "^(b+|||(CW*)*|){5,}{53}*+)^?5,}", REG_EXTENDED);

ends up using uninitialized memory like so:

regcomp.c:221:[kernel] warning: accessing uninitialized left-value:
                   assert \initialized(&right->num_submatches);
                   stack: tre_ast_new_catenation :: regcomp.c:1764 <-
                          tre_copy_ast :: regcomp.c:1916 <-
                          tre_expand_ast :: regcomp.c:2771 <-
                          musl_regcomp :: foo.c:9 <-

Having crap in this field seems bad since it is used to compute a malloc 


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.