From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15505 invoked by alias); 20 Jun 2014 04:41:41 -0000 Mailing-List: contact glibc-bugs-regex-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-regex-owner@sourceware.org Received: (qmail 15460 invoked by uid 48); 20 Jun 2014 04:41:37 -0000 From: "konstantin.s.serebryany at gmail dot com" To: glibc-bugs-regex@sourceware.org Subject: [Bug regex/17069] leak in regcomp Date: Fri, 20 Jun 2014 04:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: regex X-Bugzilla-Version: 2.20 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: konstantin.s.serebryany at gmail dot com X-Bugzilla-Status: REOPENED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: 2.20 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-06/txt/msg00020.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=17069 --- Comment #5 from Kostya Serebryany --- Created attachment 7652 --> https://sourceware.org/bugzilla/attachment.cgi?id=7652&action=edit build_charclass_op_leak.c One more similarly looking leak, only differs in top frame: build_charclass_op Direct leak of 32 byte(s) in 1 object(s) allocated from: #0 0x494a39 in calloc /home/kcc/llvm/projects/compiler-rt/lib/asan/asan_malloc_linux.cc:95 #1 0x7f8e3bed09da in build_charclass_op glibc-trunk/posix/regcomp.c:3598 #2 0x7f8e3bed1e9e in parse_expression glibc-trunk/posix/regcomp.c:2393 #3 0x7f8e3bed348f in parse_branch glibc-trunk/posix/regcomp.c:2193 #4 0x7f8e3bed357d in parse_reg_exp glibc-trunk/posix/regcomp.c:2145 #5 0x7f8e3bed39c8 in parse glibc-trunk/posix/regcomp.c:2114 #6 0x7f8e3bed39c8 in re_compile_internal glibc-trunk/posix/regcomp.c:794 #7 0x7f8e3bed4c10 in __regcomp glibc-trunk/posix/regcomp.c:501 -- You are receiving this mail because: You are on the CC list for the bug.