Skip to content

Commit

Permalink
LZMA2: display ERROR for dict > 959 mb
Browse files Browse the repository at this point in the history
git-svn-id: https://freearc.svn.sourceforge.net/svnroot/freearc@653 3a4f7f31-9599-433d-91b1-573e8b61252c
  • Loading branch information
bulatz committed Oct 4, 2009
1 parent 9b814df commit f82a90c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 14 deletions.
4 changes: 4 additions & 0 deletions Compression/LZMA2/C/LzmaEnc.c
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,10 @@ SRes LzmaEnc_SetProps(CLzmaEncHandle pp, const CLzmaEncProps *props2)
if (props.lc > LZMA_LC_MAX || props.lp > LZMA_LP_MAX || props.pb > LZMA_PB_MAX ||
props.dictSize > (1 << kDicLogSizeMaxCompress) || props.dictSize > (1 << 30))
return SZ_ERROR_PARAM;
// Bulat: dict>959m doesn't work for some reason
if (props.dictSize > (kMaxValForNormalize-kNormalizeStepMin-1*mb+1))
return SZ_ERROR_PARAM;

p->dictSize = props.dictSize;
p->hashSize = props.hashSize;
p->matchFinderCycles = props.mc;
Expand Down
2 changes: 1 addition & 1 deletion Compression/LZMA2/C_LZMA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ static int FindMatchFinder(const char *s)
#undef kNumFullDistances
#ifndef FREEARC_DECOMPRESS_ONLY
namespace LzmaEncoder {
#include "C/LzmaEnc.c"
#include "C/LzFind.c"
#include "C/LzmaEnc.c"
#undef SKIP_HEADER
#undef SKIP_FOOTER
#ifdef COMPRESS_MF_MT
Expand Down
20 changes: 7 additions & 13 deletions Documentation/History.txt
Original file line number Diff line number Diff line change
Expand Up @@ -352,31 +352,27 @@
=== To-do list ====================================================================================

linux: openWebsite http://code.google.com/p/freearc/issues/detail?id=19
lzma
-mlzma:1059mb:h100mb
������� � 1��
����������
sfx linux/nodelete
?overwrite arc.ini/groups
?����� ����� ���������� �����������
translate the "Gb" and "Mb" and "kb" fields or dropdown entries that are not yet translatable...
translate the about box
tornado: use BigAlloc ��� ������������ ���� �� ������� ���-�����
mm/tta/?external: BigAlloc; tornado: use BigAlloc ��� ������������ ���� �� ������� ���-�����
������������ ��� �������� �� ������� crc ������, ������������ ��������� CheckNews.aspx
fashell
250 vars in Lua stack?
��������� � �������� � unicode-������� � BOM � ������ ������� (�������� ����� luaL_dofile)
openDialog (cmd:"--":params) - ��������� ����� ����� ���� ���������� ����� ("--add-dialog -mx -- filenames")
����������� � ������/����� (��� ������������ ����) � ����� ����� �������� ��������
��� ������ ����. �������� ������������ ��������� ��������� �� ���������� (�� ������� ���� ����� Cancel)
���� ���������� ����� - ������ ��������� �� � gui �����?
���� ����� ������ � ���������� ����� - ������ ��������� �� � gui �����?
When I a open an encrypted archive and try to test it, Freearc asks for the password twice, once before testing and once after it.
��� ����� �������� ���� ������� ������ �� �������� ���������� ����� (����� ������/����� ������)
������ �������� �� ��������� �� ������ (� FM)
�������� � �������� "xxx" � ������� � �� ����� ���� ���� ������� ������
??after "--" allow filenames starting with "@". use "-@" option to include listfiles anywhere on cmdline
"������ ���� ����" � "solid blocks": ���������� ��������, ����������
tiny sfx - ����� ��������� ������ �� 10 �� ����������� gettemppath � ��� dll?
iss
unarc.dll: ����� arc.ini �� ���. ��������
�������� �� ���������� ���������� ����� � write callback...
Expand Down Expand Up @@ -404,6 +400,8 @@ other
��������� ������ ��� ���� ������ �� png/ico ������
unix - run-by-extension - /etc/mailcap and xdg-mime
���� - ������ �� http://win-rar.ru/study/ , ��������� � ������ ������� ����������� freearc
lzma: ��������� ������� � 1��


�������� � 7z.dll ��������� .arc ��� ������� unarc.dll � ����������� ����������� (� chaining � 7z.dll)!!!!!!!!!!!!!!!!!!!

Expand All @@ -421,6 +419,9 @@ other
3. ������������� ����� ��-regexp ��� - ������������ stat
dir/ -> dir/* (a-la RAR)
�� ������ �������������� �������� FileManager (addCmdFiles)
�������� ��������: �������� ������ ��������� �� ������ (TC), ����������� ������ ��������� ��
������ (FAR), ����������� � ��������/�� ��������� ������ ������ (-ap)
arc a a d:\ - ��������� ������

��� ���� ��������
� �����, ����� ������. ���� ������������� ���
Expand All @@ -446,9 +447,6 @@ other
dict bug: arc a aa cls.zip -mprecomp+6pt -t
bcj+dict creates corrupted archives
��� �����, ���� ��������� �� CD, �.�. ���� ����� �� ����� �� ������� ������ ������, ��� � �����, ��� ��������� ������
arc a a d:\ - ��������� ������
�������� ��������: �������� ������ ��������� �� ������ (TC), ����������� ������ ��������� ��
������ (FAR), ����������� � ��������/�� ��������� ������ ������ (-ap)
separate & no files selected
"arc a a ../file" - �� ��������� ".." �� �����; ���������� ��� ����������
arc a dir/ - ������ ����� dir/.arc; ����� �������� ����� ������� ����������� �� :/\ ��� ���������� :
Expand Down Expand Up @@ -479,7 +477,6 @@ other
TC: ��� ���������� FreeArc.exe ����������� ����� no-url\FreeArc.exe
arc x a FreeArc.exe - rar ��������� ������ ���� ���� (*.exe ��������� ��� �����)

mm/tta/ppmd/lzp/dict: BigAlloc
URL support: dynamic dlls in order to cutoff rep:1g errors
testmem and correct method before starting single_compress (?? - ����������� ���������� ������
���������� ����� �� ������� ������)
Expand Down Expand Up @@ -611,8 +608,6 @@ other
CLZInWindow - ��������� sizeReserv �� dictSize/8 ��� BT � dict=81..95mb, 161..191mb, 321mb...
lzma:32m:ht4 - ���� ���� ���������, �� ��� ���������� ������� �� ��������� (� ����� ����
���������) ���-�������: 32m+16m -> 8m+32m (������ �� 4*dictsize)
�� ��� ������� ���������� ���, � ����� 1.25*dict - ��� ���� ������� ��� ������ matchfinders,
��� ��� ������������ ��������� �� ������� ������ � �������. ���������
������
-m3t = dict[:p?] + lzp:32m:32:h18:a + grzip:m3:l, ��� lzp:a - grzip-friendly ����������� ���������
(����� � ������, � �� � �����) � ���������� ��� ����������
Expand Down Expand Up @@ -703,7 +698,6 @@ other
unc names
"arc a a c:* -ep3"; "arc a a -m1 \* -ep3"
unixify long option names (keep old names for compatibility?)
External: �������� ��������� ������ ��� ^Break
dict: ��������� ����� init (1/15 sec) ��� ��������� ������?


Expand Down

0 comments on commit f82a90c

Please sign in to comment.