From: Philip Blundell <Philip.Blundell@pobox.com>
To: libc-hacker@sources.redhat.com
Subject: regcomp failure
Date: Fri, 13 Dec 2002 11:09:00 -0000 [thread overview]
Message-ID: <1039806579.3145.2.camel@kc> (raw)
This test program appears to consume all memory and eventually crash
when run with the latest libc from cvs.
p.
--
#include <error.h>
#include <sys/types.h>
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
int
main (void)
{
regex_t re;
regmatch_t ma[2];
int reerr;
int res = 0;
reerr = regcomp (&re, "^6?3?[25]?5?[14]*[25]*[69]*+[58]*87?4?$",REG_EXTENDED | REG_NOSUB);
if (reerr != 0)
{
char buf[100];
regerror (reerr, &re, buf, sizeof buf);
error (EXIT_FAILURE, 0, buf);
}
exit (0);
}
next reply other threads:[~2002-12-13 19:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-13 11:09 Philip Blundell [this message]
2002-12-13 13:33 ` Roland McGrath
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1039806579.3145.2.camel@kc \
--to=philip.blundell@pobox.com \
--cc=libc-hacker@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).