diff options
author | Igor Pavlov <ipavlov@users.sourceforge.net> | 2018-01-12 00:16:32 +0300 |
---|---|---|
committer | Kornel <kornel@geekhood.net> | 2018-01-12 00:16:32 +0300 |
commit | da28077952faf9e716ed7987b842d31617a10125 (patch) | |
tree | 5903be6aa5f1405d54028cec42432c46df818af5 /CPP/7zip/Compress/BZip2Const.h | |
parent | b5dc853b2496447f0a54b3b25cb2659b575c56ef (diff) |
18.0018.00
Diffstat (limited to 'CPP/7zip/Compress/BZip2Const.h')
-rw-r--r-- | CPP/7zip/Compress/BZip2Const.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CPP/7zip/Compress/BZip2Const.h b/CPP/7zip/Compress/BZip2Const.h index 588f5ae0..0efecba3 100644 --- a/CPP/7zip/Compress/BZip2Const.h +++ b/CPP/7zip/Compress/BZip2Const.h @@ -50,6 +50,17 @@ const UInt32 kNumSelectorsMax = (2 + (kBlockSizeMax / kGroupSize)); const unsigned kRleModeRepSize = 4; +/* +The number of selectors stored in bzip2 block: +(numSelectors <= 18001) - must work with any decoder. +(numSelectors == 18002) - works with bzip2 1.0.6 decoder and all derived decoders. +(numSelectors > 18002) + 7-Zip decoder doesn't support it. + bzip2 1.0.6 decoder can overflow selector[18002] arrays. But there are another + arrays after selector arrays. So the compiled code works. + lbzip2 2.5 encoder can write up to (18001 + 7) selectors. +*/ + }} #endif |