diff options
author | Larry Wall <lwall@scalpel.netlabs.com> | 1995-01-11 14:06:42 -0800 |
---|---|---|
committer | Andy Dougherty <doughera@lafcol.lafayette.edu> | 1995-01-11 19:01:13 +0000 |
commit | 420218e7eb4fa5ceefe298e6d9121548b8d806d6 (patch) | |
tree | d479589e516a35fa25b6323874b46b279eccc63b /regexec.c | |
parent | adbc6bb137ce1026e8a7cba251bb82b41f398aae (diff) | |
download | perl-420218e7eb4fa5ceefe298e6d9121548b8d806d6.tar.gz |
[fix crash in regexec.c]
In article <3ekgoo@giga.bga.com> jamshid@ses.com (Jamshid Afshar) writes:
: I'm getting some unexpected behavior for a small perl script on SunOS
: 4.1.3 perl 4.0p36. The same script crashes under perl 5.0 on HP-UX.
: That script is at the end of this article -- it's as small as I could
: make it and still reproduce the crash.
Here's an unofficial patch for the problem in Perl 5.
Larry
Diffstat (limited to 'regexec.c')
-rw-r--r-- | regexec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -471,10 +471,10 @@ I32 safebase; /* no need to remember string in subbase */ goto phooey; got_it: + strend += dontbother; /* uncheat */ prog->subbeg = strbeg; prog->subend = strend; if ((!safebase && (prog->nparens || sawampersand)) || prog->do_folding) { - strend += dontbother; /* uncheat */ i = strend - startpos + (stringarg - strbeg); if (safebase) { /* no need for $digit later */ s = strbeg; |