GNU bug report logs - #51710
[PATCH] pcre: avoid overflow in PCRE JIT stack resizing

Previous Next

Package: grep;

Reported by: Carlo Marcelo Arenas Belón <carenas <at> gmail.com>

Date: Tue, 9 Nov 2021 08:41:01 UTC

Severity: normal

Tags: patch

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #16 received at 51710-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Carlo Arenas <carenas <at> gmail.com>
Cc: 51710-done <at> debbugs.gnu.org
Subject: Re: bug#51710: [PATCH] pcre: avoid overflow in PCRE JIT stack resizing
Date: Tue, 9 Nov 2021 16:30:28 -0800
On 11/9/21 11:23, Carlo Arenas wrote:
> We might keep the limit in PCRE2 though, as it should be IMHO far
> smaller anyway.

The usual GNU rule is "Avoid arbitrary limits on the length or number of 
any data structure" 
<https://www.gnu.org/prep/standards/html_node/Semantics.html>. That 
being said, if PCRE2 greatly misbehaves with a large stack size then we 
should impose some sort of limit, if only to insulate 'grep' from 
PCRE2's problems.




This bug report was last modified 3 years and 184 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.