mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Fix string size on regexp search all
This commit is contained in:
parent
36d6bb9664
commit
3a413080f9
@ -87,7 +87,7 @@ std::list<SMatch> Regex::searchAll(const std::string& s) {
|
|||||||
size_t start = ovector[2*i];
|
size_t start = ovector[2*i];
|
||||||
size_t end = ovector[2*i+1];
|
size_t end = ovector[2*i+1];
|
||||||
size_t len = end - start;
|
size_t len = end - start;
|
||||||
if (end >= s.size()) {
|
if (end > s.size()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
match.match = std::string(tmpString, start, len);
|
match.match = std::string(tmpString, start, len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user