Skip to content

Null pointer dereference in msre_op_within_execute #2128

Closed
@marcstern

Description

@marcstern

v2 reoperators.c:
static int msre_op_within_execute(...) {
[...]
if (str->value == NULL) {
*error_msg = "Internal Error: match string is null.";
return -1;
}
[...]
if (error_msg == NULL) return -1;
*error_msg = NULL;

The last 2 lines must be at the very beginning of the function

Metadata

Metadata

Assignees

Labels

2.xRelated to ModSecurity version 2.x

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions