From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,HTML_MESSAGE,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from minnie.tuhs.org (minnie.tuhs.org [50.116.15.146]) by inbox.vuxu.org (Postfix) with ESMTP id 14BE726A2C for ; Wed, 22 May 2024 15:13:02 +0200 (CEST) Received: from minnie.tuhs.org (localhost [IPv6:::1]) by minnie.tuhs.org (Postfix) with ESMTP id 41C5D43B1F; Wed, 22 May 2024 23:12:57 +1000 (AEST) Received: from mail-ej1-x632.google.com (mail-ej1-x632.google.com [IPv6:2a00:1450:4864:20::632]) by minnie.tuhs.org (Postfix) with ESMTPS id 21F2843B1E for ; Wed, 22 May 2024 23:12:52 +1000 (AEST) Received: by mail-ej1-x632.google.com with SMTP id a640c23a62f3a-a5d67064885so546162266b.1 for ; Wed, 22 May 2024 06:12:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1716383570; x=1716988370; darn=tuhs.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=UuD3rT3e/yUhgEGItKxo+nF7zYIX02mJkkl7u7a+DpQ=; b=eKkIQo2k5aKMHOhVTAzeADIFyb9+P/zWdar4Pxwu1CEWFC3LlfkYchSkPRjXHI7q5J dOdbIlJPZ6wFAUZHr3yO0Mv7SxAECoZlzslJGFVEx76sea2C7U9zx9cVwjL5mC0+zXfF lgY0ma2MbsxiSW5nIOXEAEQY495pWZAhCISNa75rh3joUQqki8eBCvMMq+K3XD1u+2eU G/VXqpTkPW/rOi90x6dEvvLzLn3a8LBhEj+raE2Pz7TxRWrV+2dhQb8U94aKgPO48sY8 6+s/SQ9+PEpkyqLJpFSnNWYqmdf75VQuBUKKtCbozVy4X7I+5iF/9muh7aXtgReRDN7v uWkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716383570; x=1716988370; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=UuD3rT3e/yUhgEGItKxo+nF7zYIX02mJkkl7u7a+DpQ=; b=D0VGK+YlgJBVs7ZAjemem5LnZ0qoYdScP+wA9iKbNz3kmoG2K/x4sImwbkVch2qQiz L6uc90mB4Vwb/JHXFYdPXjQ47Mwn76RwBamyp6kYIYH6dMv5mLNxeew1SqHMylaM74Py Gc8m+/JeMx2B0l80vbp+zpikU7jrCf6re27d3cMHH5/YRPuEkU1bodt8T1/rUYKnfcVg 4doaqpnhUIw1WXq/mQZsoQb16vWlkOufcenu29hb3pl2b4RCsp4hr7+MDEyPrwjX5kMu 6WxplPkwMI/0qucdn/cGl7UfSmqWNj7gqQ3l6Fp5wmyzTG9rxRrEOqOiqipt53fSZ+wM Ucrg== X-Forwarded-Encrypted: i=1; AJvYcCUaZudz1G0n/WM4ws170X1c0q38vSHfdvgkM56fJwhReRv/QSAKwvB7a61ZzqwKCy3bdMAAZ/IiBBqOaD34 X-Gm-Message-State: AOJu0Yzm1G9p8ZUjO9B9R4AZYuaGBZ6AAuPupZPObYvqSFsNMxlEfAMV SLE2yHBR2QvNbxJqsCeorC6OgIsSw1n4GrlSfglWLX3IBZaR0Ln4G7jcHPRsqhKxM7m2/GbsT+Z Yo/rN4yQhGSW7AxQycUhp7jAX1w3IVlV5tQXw3Q== X-Google-Smtp-Source: AGHT+IF/pgIIInDIOjPUjyg6tnXFg/7OeWtuYf060KvXeLDlpvIG2TcTsgylTZTeV4WQMfLQVX4Q53ly7LxiUr6zJfY= X-Received: by 2002:a17:906:d8a5:b0:a5a:5bc8:9fcd with SMTP id a640c23a62f3a-a622812fcd4mr195224666b.43.1716383570005; Wed, 22 May 2024 06:12:50 -0700 (PDT) MIME-Version: 1.0 References: <51CC9A0D-122C-4A3D-8BAF-C249489FB817@serissa.com> <875xv6bfhu.fsf@gmail.com> In-Reply-To: <875xv6bfhu.fsf@gmail.com> From: Warner Losh Date: Wed, 22 May 2024 07:12:36 -0600 Message-ID: To: Alexis Content-Type: multipart/alternative; boundary="000000000000fd5e0306190ab078" Message-ID-Hash: ZH6XLMZCE5EN5QYJMFPXT7WGH2CDMCUW X-Message-ID-Hash: ZH6XLMZCE5EN5QYJMFPXT7WGH2CDMCUW X-MailFrom: wlosh@bsdimp.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: The Unix Heritage Society X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [TUHS] Re: A fuzzy awk. List-Id: The Unix Heritage Society mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: --000000000000fd5e0306190ab078 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, May 21, 2024, 11:08=E2=80=AFPM Alexis wrote: > Dave Horsfall writes: > > > On Tue, 21 May 2024, Paul Winalski wrote: > > > >> To take an example that really happened, a fuzz test consisting > >> of 100 > >> nested parentheses caused an overflow in a parser table (it > >> could only > >> handle 50 nested parens). Is that worth fixing? > > > > Well, they could be a rabid LISP programmer... > > Just did a quick check of some of the ELisp packages on my system: > > * For my own packages, the maximum was 10 closing parentheses. > * For the packages in my elpa/ directory, the maximum was 26 in > ducpel-glyphs.el, where they were part of a glyph, rather than > delimiting code. The next highest value was 16, in org.el and > magit-sequence.el. > > i would suggest that any Lisp with more than a couple of dozen > closing parentheses is in dire need of refactoring. Although of > course someone who's rabid is probably not in the appropriate > mental state for that. :-) > That's what ']' is for. Warner > --000000000000fd5e0306190ab078 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Tue, May 21, 2024, 11:08=E2=80=AFPM Alexis <flexibeast@gmail.com> wrote:
=
Dave Horsfall <dave@horsfall.org= > writes:

> On Tue, 21 May 2024, Paul Winalski wrote:
>
>> To take an example that really happened, a fuzz test consisting >> of 100
>> nested parentheses caused an overflow in a parser table (it
>> could only
>> handle 50 nested parens).=C2=A0 Is that worth fixing?
>
> Well, they could be a rabid LISP programmer...

Just did a quick check of some of the ELisp packages on my system:

* For my own packages, the maximum was 10 closing parentheses.
* For the packages in my elpa/ directory, the maximum was 26 in
=C2=A0 ducpel-glyphs.el, where they were part of a glyph, rather than
=C2=A0 delimiting code. The next highest value was 16, in org.el and
=C2=A0 magit-sequence.el.

i would suggest that any Lisp with more than a couple of dozen
closing parentheses is in dire need of refactoring. Although of
course someone who's rabid is probably not in the appropriate
mental state for that. :-)
That's what ']' is for.

Warner
--000000000000fd5e0306190ab078--