Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kornelski/7z.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'CPP/7zip/Compress/BZip2Const.h')
-rw-r--r--CPP/7zip/Compress/BZip2Const.h11
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