diff options
author | krion <krion@FreeBSD.org> | 2008-08-12 23:48:15 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2008-08-12 23:48:15 +0800 |
commit | d944789ca320b462bb272c3fe4db9c2c26dd24fa (patch) | |
tree | 5724640fb27565f5c430e73eeebdcd3a45cc2b22 /devel/pcre | |
parent | dcdd9e3b625abd4b05886fda777e323e738d91fd (diff) | |
download | freebsd-ports-gnome-d944789ca320b462bb272c3fe4db9c2c26dd24fa.tar.gz freebsd-ports-gnome-d944789ca320b462bb272c3fe4db9c2c26dd24fa.tar.zst freebsd-ports-gnome-d944789ca320b462bb272c3fe4db9c2c26dd24fa.zip |
Fix a heap overflow condition when compiling certain regular
expressions involving in-pattern options and branches, potentially
leading to arbitrary code execution.
PR: ports/126471
Submitted by: Tsurutani Naoki <turutani@scphys.kyoto-u.ac.jp>
Diffstat (limited to 'devel/pcre')
-rw-r--r-- | devel/pcre/Makefile | 1 | ||||
-rw-r--r-- | devel/pcre/files/patch-pcre__compile.c | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/devel/pcre/Makefile b/devel/pcre/Makefile index 974536cee096..dd3fc5890666 100644 --- a/devel/pcre/Makefile +++ b/devel/pcre/Makefile @@ -7,6 +7,7 @@ PORTNAME= pcre PORTVERSION= 7.7 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= ftp://ftp.csx.cam.ac.uk/pub/software/programming/%SUBDIR%/ \ ftp://ftp.fu-berlin.de/unix/misc/%SUBDIR%/ \ diff --git a/devel/pcre/files/patch-pcre__compile.c b/devel/pcre/files/patch-pcre__compile.c new file mode 100644 index 000000000000..a492df897aee --- /dev/null +++ b/devel/pcre/files/patch-pcre__compile.c @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- pcre_compile.c.orig ++++ pcre_compile.c +@@ -4931,7 +4931,7 @@ + (lengthptr == NULL || *lengthptr == 2 + 2*LINK_SIZE)) + { + cd->external_options = newoptions; +- options = newoptions; ++ options = *optionsptr = newoptions; + } + else + { |