Missing throw in Operator::instantiate? #2106
Labels
3.x
Related to ModSecurity version 3.x
enhancement
workaround available
The issue has either a temporary or permanent workaround available
Milestone
Building ModSecurity 3.0.3 package (openSUSE Tumbleweed, GCC 9) produced the following compiler warning which the build system flagged as an error:
Looking at the code in question, it seems that the warning is caused by a missing throw keyword right at the end of the function, where I suppose you want to throw an invalid argument exception if none of operator checks match.
The following patch got rid of that compiler warning:
While the above patch seems correct to me, I am not 100% sure whether this is a genuine bug in the code or just newer GCC being stricter and flagging non-issues as warnings.
The text was updated successfully, but these errors were encountered: