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