http: disable lzma decompression from configuration

pull/4236/head
Philippe Antoine 6 years ago committed by Victor Julien
parent 94aa36df1b
commit c09ad01836

@ -2702,6 +2702,12 @@ static void HTPConfigParseParameters(HTPCfgRec *cfg_prec, ConfNode *s,
/* set default soft-limit with our new hard limit */
SCLogConfig("Setting HTTP LZMA memory limit to %"PRIu32" bytes", limit);
htp_config_set_lzma_memlimit(cfg_prec->cfg, (size_t)limit);
#endif
#ifdef HAVE_HTP_CONFIG_SET_LZMA_MEMLIMIT
} else if (strcasecmp("lzma-enabled", p->name) == 0) {
if (ConfValIsFalse(p->val)) {
htp_config_set_lzma_memlimit(cfg_prec->cfg, 0);
}
#endif
} else if (strcasecmp("randomize-inspection-sizes", p->name) == 0) {
if (!g_disable_randomness) {

@ -977,6 +977,7 @@ app-layer:
# LZMA decompression memory limit.
#lzma-memlimit: 1 Mb
#lzma-enabled: yes
server-config:

Loading…
Cancel
Save