From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 64493C433EF for ; Tue, 16 Nov 2021 09:30:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 3786F61B48 for ; Tue, 16 Nov 2021 09:30:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233069AbhKPJc7 (ORCPT ); Tue, 16 Nov 2021 04:32:59 -0500 Received: from mail-out.m-online.net ([212.18.0.9]:60043 "EHLO mail-out.m-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232697AbhKPJc6 (ORCPT ); Tue, 16 Nov 2021 04:32:58 -0500 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 4Htgkw0RgXz1qwdl; Tue, 16 Nov 2021 10:30:00 +0100 (CET) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 4Htgkv6t0Yz1qqkC; Tue, 16 Nov 2021 10:29:59 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id IVlHgM6BPgBt; Tue, 16 Nov 2021 10:29:59 +0100 (CET) X-Auth-Info: 1ytDS6b+J9QGxnCHxEYIFNhs+laBlnnbDfOqfvKZN+TN+4f2rFxlX068d+4eGq7y Received: from igel.home (ppp-46-244-181-163.dynamic.mnet-online.de [46.244.181.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Tue, 16 Nov 2021 10:29:59 +0100 (CET) Received: by igel.home (Postfix, from userid 1000) id 9EB352C1723; Tue, 16 Nov 2021 10:29:58 +0100 (CET) From: Andreas Schwab To: Carlo Arenas Cc: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason , Hamza Mahfooz , git@vger.kernel.org, Junio C Hamano Subject: Re: [PATCH v13 3/3] grep/pcre2: fix an edge case concerning ascii patterns and UTF-8 data References: <20211015161356.3372-1-someguy@effective-light.com> <20211015161356.3372-3-someguy@effective-light.com> <877dd9i1zj.fsf@igel.home> <211115.86fsrxqbvp.gmgdl@evledraar.gmail.com> <87o86kv6fh.fsf@igel.home> X-Yow: Two with FLUFFO, hold th' BEETS..side of SOYETTES! Date: Tue, 16 Nov 2021 10:29:58 +0100 In-Reply-To: (Carlo Arenas's message of "Tue, 16 Nov 2021 01:06:51 -0800") Message-ID: <87fsrwv46h.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org expecting success of 7812.13 'PCRE v2: grep ASCII from invalid UTF-8 data': git grep -h "var" invalid-0x80 >actual && test_cmp expected actual && git grep -h "(*NO_JIT)var" invalid-0x80 >actual && test_cmp expected actual ++ git grep -h var invalid-0x80 ++ test_cmp expected actual ++ test 2 -ne 2 ++ eval 'diff -u' '"$@"' +++ diff -u expected actual ++ git grep -h '(*NO_JIT)var' invalid-0x80 fatal: pcre2_match failed with error code -22: UTF-8 error: isolated byte with 0x80 bit set error: last command exited with $?=128 not ok 13 - PCRE v2: grep ASCII from invalid UTF-8 data # # git grep -h "var" invalid-0x80 >actual && # test_cmp expected actual && # git grep -h "(*NO_JIT)var" invalid-0x80 >actual && # test_cmp expected actual # Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."