mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-08-14 05:45:59 +03:00
Add nullptr check conditions
This commit is contained in:
parent
3e95614699
commit
029684c294
@ -268,10 +268,13 @@ bool XML::processChunk(const char *buf, unsigned int size,
|
||||
}
|
||||
|
||||
if (m_data.parsing_ctx_arg != NULL &&
|
||||
m_transaction->m_secXMLParseXmlIntoArgs
|
||||
== RulesSetProperties::OnlyArgsConfigXMLParseXmlIntoArgs ||
|
||||
m_transaction->m_secXMLParseXmlIntoArgs
|
||||
== RulesSetProperties::TrueConfigXMLParseXmlIntoArgs) {
|
||||
(
|
||||
m_transaction->m_secXMLParseXmlIntoArgs
|
||||
== RulesSetProperties::OnlyArgsConfigXMLParseXmlIntoArgs
|
||||
||
|
||||
m_transaction->m_secXMLParseXmlIntoArgs
|
||||
== RulesSetProperties::TrueConfigXMLParseXmlIntoArgs)
|
||||
) {
|
||||
xmlSetGenericErrorFunc(m_data.parsing_ctx_arg, null_error);
|
||||
xmlParseChunk(m_data.parsing_ctx_arg, buf, size, 0);
|
||||
if (m_data.parsing_ctx_arg->wellFormed != 1) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user