From 9effe8078d6ca89b3a6aa665448e3614f87a8b04 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 22:43:02 +0000 Subject: Apply patch pcre-8.38-Give-error-for-regexec-with-pmatch-NULL-and-REG_STAR.patch patch_name: pcre-8.38-Give-error-for-regexec-with-pmatch-NULL-and-REG_STAR.patch present_in_specfile: true --- diff --git a/pcreposix.c b/pcreposix.c index f024423..dcc13ef 100644 --- a/pcreposix.c +++ b/pcreposix.c @@ -364,6 +364,7 @@ start location rather than being passed as a PCRE "starting offset". */ if ((eflags & REG_STARTEND) != 0) { + if (pmatch == NULL) return REG_INVARG; so = pmatch[0].rm_so; eo = pmatch[0].rm_eo; }