From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10037 Path: news.gmane.org!not-for-mail From: John Regehr Newsgroups: gmane.linux.lib.musl.general Subject: uninitialized variable Date: Thu, 19 May 2016 17:28:58 +0200 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1463671763 21732 80.91.229.3 (19 May 2016 15:29:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 19 May 2016 15:29:23 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10050-gllmg-musl=m.gmane.org@lists.openwall.com Thu May 19 17:29:23 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1b3Pt3-0008Fn-IO for gllmg-musl@m.gmane.org; Thu, 19 May 2016 17:29:21 +0200 Original-Received: (qmail 3464 invoked by uid 550); 19 May 2016 15:29:18 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 3421 invoked from network); 19 May 2016 15:29:12 -0000 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 Xref: news.gmane.org gmane.linux.lib.musl.general:10037 Archived-At: 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 <- main Having crap in this field seems bad since it is used to compute a malloc size. John