Introduced conf_lzma.max_num_probs to limit stack size for decompression.

This commit is contained in:
Markus F.X.J. Oberhumer
2006-06-29 05:12:01 +02:00
parent c360806f47
commit 0bc361adeb
2 changed files with 36 additions and 14 deletions
+1 -9
View File
@@ -210,15 +210,7 @@ struct upx_callback_t
struct lzma_compress_config_t
{
#if 0
unsigned pos_bits; // pb
unsigned lit_pos_bits; // lp
unsigned lit_context_bits; // lc
unsigned dict_size;
unsigned mf_passes;
#else
int dummy;
#endif
unsigned max_num_probs;
void reset() { memset(this, 0, sizeof(*this)); }
};