mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-15 23:55:03 +03:00
Use explicit variable size for copying char.
For some reason plain call to "ret.append(&b)" copy 32 bit of data. This change unbreaks CmdLine unit tests for FreeBSD 10, CentOS 7, RHEL 7 and Debian 8.
This commit is contained in:
parent
57ad70bb2b
commit
32f22d1a79
@ -72,7 +72,7 @@ std::string CmdLine::evaluate(std::string value,
|
|||||||
/* copy normal characters */
|
/* copy normal characters */
|
||||||
default :
|
default :
|
||||||
char b = std::tolower(a);
|
char b = std::tolower(a);
|
||||||
ret.append(&b);
|
ret.append(&b, 1);
|
||||||
space = 0;
|
space = 0;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user