From 33cebf5f4eb5cc083ad037e7aa4d01adcdc05fa5 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Sun, 13 May 2018 18:27:47 +0200 Subject: [PATCH] fix fedora 28 crash caused by assertion (no actual issue). Use resize, not reserve to provision a c++ vector actually used as c storage --- src/utils/smallut.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/smallut.cpp b/src/utils/smallut.cpp index d2218c94..48acdc9f 100644 --- a/src/utils/smallut.cpp +++ b/src/utils/smallut.cpp @@ -1281,7 +1281,7 @@ public: } else { ok = false; } - matches.reserve(nmatch+1); + matches.resize(nmatch+1); } ~Internal() { regfree(&expr);