From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.8 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 93CBA1F463 for ; Thu, 2 Jan 2020 16:16:39 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-type; q=dns; s=default; b=Rnbs c84RgKNuHfcGNZJkJfDzfJ2HbZ9ENyV8R8TRZZii646fuavXnuGDM/UldyC0U407 ROtIwdK3HswsuGz2f+a3NheDWhPc13cgnOtRoUw9QTCTTCKZTVHc8VvjsaNjVpnF fg58OWe/Z5uY2/lZ6XMKDDrscVEW9UdF86UwHF8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-type; s=default; bh=H0v0j1c7tk 8gqKLlDybyfgFfSDA=; b=BU+UxZha9ba2CixF/SqwFUf51qjeuwgYN42Mdg9m5P NXqii6Cw+YTBiTuGr2LQ2myacjnCj663XYH3V9Vvx2hlO96ubrBiX8QfRoGkVRoV bbif3zLL3ZAPpP+M2t7Nm5yBDk5++PBC/lHuAKuP0jRJLj1PFwiB9T/VXRLM4oFp E= Received: (qmail 73257 invoked by alias); 2 Jan 2020 16:16:36 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 73230 invoked by uid 89); 2 Jan 2020 16:16:33 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mout.gmx.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1577981765; bh=7xTge5WxlvOlJfBZy/wljtsuCi5Qx2mEuYcvxmvc5wo=; h=X-UI-Sender-Class:Subject:To:Cc:References:From:Date:In-Reply-To; b=i0fRuZo/HTQK3qFU2enM1/qOcV2pevfWI3U8sG0XnUYpvcaT14XQR/3ATd8Bc2twp vLi+cX4t7C1DE+ULxKe8usJ1IK0qFoxvuWQV2pOwIAo6cCQZNj4LZH4brEsOwWgERS LdR6rtrJ4aw5ugAB2x1KV9sLewT+/fNtAKY6+2Jg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Subject: Re: question about regex To: liqingqing , libc-alpha@sourceware.org, Florian Weimer , Carlos O'Donell Cc: Hushiyuan , Liusirui References: From: =?UTF-8?Q?Tim_R=c3=bchsen?= Message-ID: Date: Thu, 2 Jan 2020 17:16:04 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="f4EorXNfPxnuUG1aCrrvU3JLVVZPg559J" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --f4EorXNfPxnuUG1aCrrvU3JLVVZPg559J Content-Type: multipart/mixed; boundary="Ghrnm1tijEdxt3m3sRSS1tEI0pwBty75Z"; protected-headers="v1" From: =?UTF-8?Q?Tim_R=c3=bchsen?= To: liqingqing , libc-alpha@sourceware.org, Florian Weimer , Carlos O'Donell Cc: Hushiyuan , Liusirui Message-ID: Subject: Re: question about regex References: In-Reply-To: --Ghrnm1tijEdxt3m3sRSS1tEI0pwBty75Z Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 1/2/20 11:54 AM, liqingqing wrote: > Hello Florian and all glibc developers. >=20 > I wonder ask you that do we have any plan or good ways to fix up the bu= g as below: >=20 >=20 > https://sourceware.org/bugzilla/show_bug.cgi?id=3D24269 >=20 > Dhiraj 2019-02-26 06:24:20 UTC > While fuzzing the regex module via hongfuzz >=20 > $ echo D | grep -E "$(printf '(\0|)(\\1\\1)*')" > bash: warning: command substitution: ignored null byte in input > Segmentation fault (core dumped) >=20 > =3D=3D6453=3D=3D Process terminating with default action of signal 13 (= SIGPIPE) > =3D=3D6453=3D=3D at 0x4F4C154: write (write.c:27) > =3D=3D6453=3D=3D by 0x4EC71BC: _IO_file_write@@GLIBC_2.2.5 (fileops.= c:1203) > =3D=3D6453=3D=3D by 0x4EC8F50: new_do_write (fileops.c:457) > =3D=3D6453=3D=3D by 0x4EC8F50: _IO_do_write@@GLIBC_2.2.5 (fileops.c:= 433) > =3D=3D6453=3D=3D by 0x4EC6787: _IO_file_sync@@GLIBC_2.2.5 (fileops.c= :813) > =3D=3D6453=3D=3D by 0x4EBA87C: fflush (iofflush.c:40) > =3D=3D6453=3D=3D by 0x10CE73: ??? (in /bin/echo) > =3D=3D6453=3D=3D by 0x10C939: ??? (in /bin/echo) > =3D=3D6453=3D=3D by 0x10A221: ??? (in /bin/echo) > =3D=3D6453=3D=3D by 0x4E7F040: __run_exit_handlers (exit.c:108) > =3D=3D6453=3D=3D by 0x4E7F139: exit (exit.c:139) > =3D=3D6453=3D=3D by 0x4E5DB9D: (below main) (libc-start.c:344) > =3D=3D6453=3D=3D >=20 > OS: Linux ubuntu 4.15.0-45-generic #48-Ubuntu SMP Tue Jan 29 16:28:13 U= TC 2019 x86_64 x86_64 x86_64 GNU/Linux Meanwhile grep (or libc) seems to exit gracefully: $ echo D | grep -E "$(printf '(\0|)(\\1\\1)*')" bash: warning: command substitution: ignored null byte in input grep: stack overflow Here: Debian unstable, grep (GNU grep) 3.3 Regards, Tim --Ghrnm1tijEdxt3m3sRSS1tEI0pwBty75Z-- --f4EorXNfPxnuUG1aCrrvU3JLVVZPg559J Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEHLJ9vJhhSy1YQWRtCDAttqJnBCgFAl4OF0QACgkQCDAttqJn BCg8KA//bKQCs7bpgDcS7Jw9pTPPld8IaWNA/kPRWR1IPc4AHxXoo/xpBqAZK4RZ 7okFpg7VfLFI6UqNcyfvagmuAZ64G/frhh8FI6wr8xI5j6TtAwzky0EocC2skrni nkfeYtK5f8G2kOhXN7Zd/8sOaJJnXODgfdyIsRNBlJLWQu6LWnxVSOaHUohlxy8G Pacps0Xwp4ikQleHvacrt+mY+HqA3Vb2ncTbAFO8x0C3OCYLzkkzJ0fSeMQZFbmT 1WV/rLmBSRhVLvNech7GteqGB68eGsVpJQ9eV1wK8hDBgX6zKtkmivYafIZxpLDy XwRAi+nMfiTNa3JMeQeiNJXDoKs7AutwiBCFHB1GW+uxGqY8jp45IfPBOPabQbrj fOwIhJHz4KruNvHJJ8QXsF1V0hCMoRU8MBFrrwGYgZNLw9OKkuCBKpUletOXCxB1 Ez3KnPsMu24mQo4c9a+v/SIAzYuwQDZRFobtHK9ePwV2zK0tII5qbKTCIW0of3pz IB029N1aznZq3P7tAMavoJBOkCZsgzGAN1oBALqFvAoyJMmUboqJBkn75WqvoJFv mQ50C8dPLqGdb/yN3hRq+v6cy9RoZckwDHLHTIiSlZQGgjQ4m4UEC9HR1Xt7m8t5 IbdFqDrgK3OulCvNJMX3spuSY4D/Xle3bkRZlP5/0nl4vW4bdZ0= =G/ro -----END PGP SIGNATURE----- --f4EorXNfPxnuUG1aCrrvU3JLVVZPg559J--