From 8f5a7b54eb953bbfc877ec915e26b3a95ec28d00 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Sun, 21 Feb 2010 23:00:56 +0000 Subject: New updater with 3x reduced footprint and fully W7 and x64 compatible git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@476 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/allocations.h | 4 +- updater/bzip2-1.0.3/CHANGES | 46 +- updater/bzip2-1.0.3/LICENSE | 10 +- updater/bzip2-1.0.3/Makefile | 30 +- updater/bzip2-1.0.3/Makefile-libbz2_so | 31 +- updater/bzip2-1.0.3/README | 105 +- updater/bzip2-1.0.3/README.COMPILATION.PROBLEMS | 37 +- updater/bzip2-1.0.3/README.XML.STUFF | 22 +- updater/bzip2-1.0.3/blocksort.c | 77 +- updater/bzip2-1.0.3/bzip2.c | 205 +- updater/bzip2-1.0.3/bzip2recover.c | 88 +- updater/bzip2-1.0.3/bzlib.c | 130 +- updater/bzip2-1.0.3/bzlib.h | 69 +- updater/bzip2-1.0.3/bzlib_private.h | 102 +- updater/bzip2-1.0.3/compress.c | 86 +- updater/bzip2-1.0.3/crctable.c | 60 +- updater/bzip2-1.0.3/decompress.c | 72 +- updater/bzip2-1.0.3/entities.xml | 6 +- updater/bzip2-1.0.3/format.pl | 15 + updater/bzip2-1.0.3/huffman.c | 66 +- updater/bzip2-1.0.3/manual.html | 1711 +- updater/bzip2-1.0.3/manual.pdf | Bin 207093 -> 288137 bytes updater/bzip2-1.0.3/manual.ps | 101582 ++++++++++-------- updater/bzip2-1.0.3/manual.xml | 28 +- updater/bzip2-1.0.3/mk251.c | 15 + updater/bzip2-1.0.3/randtable.c | 60 +- updater/bzip2-1.0.3/spewG.c | 15 + updater/bzip2-1.0.3/unzcrash.c | 17 +- updater/bzip2-1.0.3/xmlproc.sh | 19 +- updater/common.h | 129 +- updater/conf_comp_dialog.cpp | 16 +- updater/conf_dialog.cpp | 18 +- updater/extern.cpp | 59 +- updater/extern.h | 2 +- updater/ezxml.c | 967 + updater/ezxml.h | 165 + updater/options.cpp | 56 +- updater/popups.cpp | 46 +- updater/popups.h | 4 - updater/progress_dialog.cpp | 10 +- updater/scan.cpp | 346 +- updater/scan.h | 9 +- updater/services.cpp | 223 +- updater/socket.cpp | 81 +- updater/socket.h | 4 +- updater/str_utils.cpp | 99 - updater/str_utils.h | 23 - updater/tinystr.cpp | 318 - updater/tinystr.h | 250 - updater/tinyxml.cpp | 1592 - updater/tinyxml.h | 1426 - updater/tinyxmlerror.cpp | 51 - updater/tinyxmlparser.cpp | 1508 - updater/updater.cpp | 42 +- updater/updater.def | 2 + updater/updater.dsp | 202 +- updater/updater.h | 4 + updater/updater_9.vcproj | 2217 +- updater/utils.h | 1 - updater/version.h | 6 +- updater/xmldata.cpp | 178 +- updater/xmldata.h | 2 +- updater/zbin/minizip/crypt.h | 132 + updater/zbin/minizip/ioapi.c | 177 + updater/zbin/minizip/ioapi.h | 75 + updater/zbin/minizip/iowin32.c | 270 + updater/zbin/minizip/iowin32.h | 21 + updater/zbin/minizip/miniunz.c | 648 + updater/zbin/minizip/munzip.c | 1585 + updater/zbin/minizip/munzip.h | 355 + updater/zbin/minizip/mzip.c | 1219 + updater/zbin/minizip/mzip.h | 235 + updater/zbin/minizip/mztools.c | 281 + updater/zbin/minizip/mztools.h | 31 + updater/zbin/x32/zlib.lib | Bin 0 -> 10532 bytes updater/zbin/x64/zlib.lib | Bin 0 -> 10278 bytes updater/zbin/zconf.h | 332 + updater/zbin/zlib.h | 1357 + updater/zlib123/ChangeLog | 855 - updater/zlib123/FAQ | 339 - updater/zlib123/INDEX | 51 - updater/zlib123/Makefile | 154 - updater/zlib123/Makefile.in | 154 - updater/zlib123/README | 125 - updater/zlib123/adler32.c | 143 - updater/zlib123/algorithm.txt | 209 - updater/zlib123/amiga/Makefile.pup | 66 - updater/zlib123/amiga/Makefile.sas | 65 - updater/zlib123/as400/bndsrc | 132 - updater/zlib123/as400/compile.clp | 123 - updater/zlib123/as400/readme.txt | 111 - updater/zlib123/as400/zlib.inc | 331 - updater/zlib123/compress_zlib.c | 69 - updater/zlib123/configure | 459 - updater/zlib123/contrib/README.contrib | 71 - updater/zlib123/contrib/ada/buffer_demo.adb | 106 - updater/zlib123/contrib/ada/mtest.adb | 156 - updater/zlib123/contrib/ada/read.adb | 156 - updater/zlib123/contrib/ada/readme.txt | 65 - updater/zlib123/contrib/ada/test.adb | 463 - updater/zlib123/contrib/ada/zlib-streams.adb | 225 - updater/zlib123/contrib/ada/zlib-streams.ads | 114 - updater/zlib123/contrib/ada/zlib-thin.adb | 141 - updater/zlib123/contrib/ada/zlib-thin.ads | 450 - updater/zlib123/contrib/ada/zlib.adb | 701 - updater/zlib123/contrib/ada/zlib.ads | 328 - updater/zlib123/contrib/ada/zlib.gpr | 20 - updater/zlib123/contrib/asm586/README.586 | 43 - updater/zlib123/contrib/asm586/match.S | 364 - updater/zlib123/contrib/asm686/README.686 | 34 - updater/zlib123/contrib/asm686/match.S | 329 - updater/zlib123/contrib/blast/Makefile | 8 - updater/zlib123/contrib/blast/README | 4 - updater/zlib123/contrib/blast/blast.c | 444 - updater/zlib123/contrib/blast/blast.h | 71 - updater/zlib123/contrib/blast/test.pk | Bin 8 -> 0 bytes updater/zlib123/contrib/blast/test.txt | 1 - updater/zlib123/contrib/delphi/ZLib.pas | 557 - updater/zlib123/contrib/delphi/ZLibConst.pas | 11 - updater/zlib123/contrib/delphi/readme.txt | 76 - updater/zlib123/contrib/delphi/zlibd32.mak | 93 - updater/zlib123/contrib/dotzlib/DotZLib.build | 33 - updater/zlib123/contrib/dotzlib/DotZLib.chm | Bin 72728 -> 0 bytes updater/zlib123/contrib/dotzlib/DotZLib.sln | 21 - .../contrib/dotzlib/DotZLib/AssemblyInfo.cs | 58 - .../contrib/dotzlib/DotZLib/ChecksumImpl.cs | 202 - .../contrib/dotzlib/DotZLib/CircularBuffer.cs | 83 - .../zlib123/contrib/dotzlib/DotZLib/CodecBase.cs | 198 - .../zlib123/contrib/dotzlib/DotZLib/Deflater.cs | 106 - updater/zlib123/contrib/dotzlib/DotZLib/DotZLib.cs | 288 - .../zlib123/contrib/dotzlib/DotZLib/DotZLib.csproj | 141 - .../zlib123/contrib/dotzlib/DotZLib/GZipStream.cs | 301 - .../zlib123/contrib/dotzlib/DotZLib/Inflater.cs | 105 - .../zlib123/contrib/dotzlib/DotZLib/UnitTests.cs | 274 - updater/zlib123/contrib/dotzlib/LICENSE_1_0.txt | 23 - updater/zlib123/contrib/dotzlib/readme.txt | 58 - updater/zlib123/contrib/infback9/README | 1 - updater/zlib123/contrib/infback9/infback9.c | 608 - updater/zlib123/contrib/infback9/infback9.h | 37 - updater/zlib123/contrib/infback9/inffix9.h | 107 - updater/zlib123/contrib/infback9/inflate9.h | 47 - updater/zlib123/contrib/infback9/inftree9.c | 323 - updater/zlib123/contrib/infback9/inftree9.h | 55 - updater/zlib123/contrib/inflate86/inffas86.c | 1157 - updater/zlib123/contrib/inflate86/inffast.S | 1368 - updater/zlib123/contrib/iostream/test.cpp | 24 - updater/zlib123/contrib/iostream/zfstream.cpp | 329 - updater/zlib123/contrib/iostream/zfstream.h | 128 - updater/zlib123/contrib/iostream2/zstream.h | 307 - updater/zlib123/contrib/iostream2/zstream_test.cpp | 25 - updater/zlib123/contrib/iostream3/README | 35 - updater/zlib123/contrib/iostream3/TODO | 17 - updater/zlib123/contrib/iostream3/test.cc | 50 - updater/zlib123/contrib/iostream3/zfstream.cc | 479 - updater/zlib123/contrib/iostream3/zfstream.h | 466 - updater/zlib123/contrib/masm686/match.asm | 413 - updater/zlib123/contrib/masmx64/bld_ml64.bat | 2 - updater/zlib123/contrib/masmx64/gvmat64.asm | 513 - updater/zlib123/contrib/masmx64/gvmat64.obj | Bin 4119 -> 0 bytes updater/zlib123/contrib/masmx64/inffas8664.c | 186 - updater/zlib123/contrib/masmx64/inffasx64.asm | 392 - updater/zlib123/contrib/masmx64/inffasx64.obj | Bin 5913 -> 0 bytes updater/zlib123/contrib/masmx64/readme.txt | 28 - updater/zlib123/contrib/masmx86/bld_ml32.bat | 2 - updater/zlib123/contrib/masmx86/gvmat32.asm | 972 - updater/zlib123/contrib/masmx86/gvmat32.obj | Bin 10241 -> 0 bytes updater/zlib123/contrib/masmx86/gvmat32c.c | 62 - updater/zlib123/contrib/masmx86/inffas32.asm | 1083 - updater/zlib123/contrib/masmx86/inffas32.obj | Bin 14893 -> 0 bytes updater/zlib123/contrib/masmx86/mkasm.bat | 3 - updater/zlib123/contrib/masmx86/readme.txt | 21 - updater/zlib123/contrib/minizip/ChangeLogUnzip | 67 - updater/zlib123/contrib/minizip/Makefile | 25 - updater/zlib123/contrib/minizip/crypt.h | 132 - updater/zlib123/contrib/minizip/ioapi.c | 177 - updater/zlib123/contrib/minizip/ioapi.h | 75 - updater/zlib123/contrib/minizip/iowin32.c | 270 - updater/zlib123/contrib/minizip/iowin32.h | 21 - updater/zlib123/contrib/minizip/miniunz.c | 648 - updater/zlib123/contrib/minizip/minizip.c | 420 - updater/zlib123/contrib/minizip/munzip.c | 1585 - updater/zlib123/contrib/minizip/munzip.h | 355 - updater/zlib123/contrib/minizip/mzip.c | 1219 - updater/zlib123/contrib/minizip/mzip.h | 235 - updater/zlib123/contrib/minizip/mztools.c | 281 - updater/zlib123/contrib/minizip/mztools.h | 31 - updater/zlib123/contrib/pascal/example.pas | 599 - updater/zlib123/contrib/pascal/readme.txt | 76 - updater/zlib123/contrib/pascal/zlibd32.mak | 93 - updater/zlib123/contrib/pascal/zlibpas.pas | 236 - updater/zlib123/contrib/puff/Makefile | 8 - updater/zlib123/contrib/puff/README | 63 - updater/zlib123/contrib/puff/puff.c | 837 - updater/zlib123/contrib/puff/puff.h | 31 - updater/zlib123/contrib/puff/zeros.raw | Bin 1213 -> 0 bytes updater/zlib123/contrib/testzlib/testzlib.c | 275 - updater/zlib123/contrib/testzlib/testzlib.txt | 10 - updater/zlib123/contrib/untgz/Makefile | 14 - updater/zlib123/contrib/untgz/Makefile.msc | 17 - updater/zlib123/contrib/untgz/untgz.c | 674 - updater/zlib123/contrib/vstudio/readme.txt | 73 - updater/zlib123/contrib/vstudio/vc7/miniunz.vcproj | 126 - updater/zlib123/contrib/vstudio/vc7/minizip.vcproj | 126 - .../zlib123/contrib/vstudio/vc7/testzlib.vcproj | 126 - updater/zlib123/contrib/vstudio/vc7/zlib.rc | 32 - .../zlib123/contrib/vstudio/vc7/zlibstat.vcproj | 246 - updater/zlib123/contrib/vstudio/vc7/zlibvc.def | 92 - updater/zlib123/contrib/vstudio/vc7/zlibvc.sln | 78 - updater/zlib123/contrib/vstudio/vc7/zlibvc.vcproj | 445 - updater/zlib123/contrib/vstudio/vc8/miniunz.vcproj | 566 - updater/zlib123/contrib/vstudio/vc8/minizip.vcproj | 563 - .../zlib123/contrib/vstudio/vc8/testzlib.vcproj | 948 - .../zlib123/contrib/vstudio/vc8/testzlibdll.vcproj | 567 - updater/zlib123/contrib/vstudio/vc8/zlib.rc | 32 - .../zlib123/contrib/vstudio/vc8/zlibstat.vcproj | 870 - updater/zlib123/contrib/vstudio/vc8/zlibvc.def | 92 - updater/zlib123/contrib/vstudio/vc8/zlibvc.sln | 144 - updater/zlib123/contrib/vstudio/vc8/zlibvc.vcproj | 1219 - updater/zlib123/crc32.c | 407 - updater/zlib123/crc32.h | 441 - updater/zlib123/deflate.c | 1674 - updater/zlib123/deflate.h | 331 - updater/zlib123/example.c | 565 - updater/zlib123/examples/README.examples | 42 - updater/zlib123/examples/fitblk.c | 233 - updater/zlib123/examples/gun.c | 693 - updater/zlib123/examples/gzappend.c | 500 - updater/zlib123/examples/gzjoin.c | 448 - updater/zlib123/examples/gzlog.c | 413 - updater/zlib123/examples/gzlog.h | 58 - updater/zlib123/examples/zlib_how.html | 523 - updater/zlib123/examples/zpipe.c | 191 - updater/zlib123/examples/zran.c | 404 - updater/zlib123/gzio.c | 979 - updater/zlib123/infback.c | 611 - updater/zlib123/inffast.c | 316 - updater/zlib123/inffast.h | 11 - updater/zlib123/inffixed.h | 94 - updater/zlib123/inflate.c | 1339 - updater/zlib123/inflate.h | 115 - updater/zlib123/inftrees.c | 323 - updater/zlib123/inftrees.h | 55 - updater/zlib123/make_vms.com | 461 - updater/zlib123/minigzip.c | 322 - updater/zlib123/msdos/Makefile.bor | 109 - updater/zlib123/msdos/Makefile.dj2 | 104 - updater/zlib123/msdos/Makefile.emx | 69 - updater/zlib123/msdos/Makefile.msc | 106 - updater/zlib123/msdos/Makefile.tc | 94 - updater/zlib123/old/Makefile.riscos | 151 - updater/zlib123/old/README | 3 - updater/zlib123/old/descrip.mms | 48 - updater/zlib123/old/os2/Makefile.os2 | 136 - updater/zlib123/old/os2/zlib.def | 51 - updater/zlib123/old/visual-basic.txt | 160 - updater/zlib123/old/zlib.html | 971 - updater/zlib123/projects/README.projects | 41 - updater/zlib123/projects/visualc6/README.txt | 73 - updater/zlib123/projects/visualc6/example.dsp | 278 - updater/zlib123/projects/visualc6/minigzip.dsp | 278 - updater/zlib123/projects/visualc6/zlib.dsp | 609 - updater/zlib123/projects/visualc6/zlib.dsw | 59 - updater/zlib123/qnx/package.qpg | 141 - updater/zlib123/trees.c | 1195 - updater/zlib123/trees.h | 128 - updater/zlib123/uncompr.c | 61 - updater/zlib123/win32/DLL_FAQ.txt | 397 - updater/zlib123/win32/Makefile.bor | 107 - updater/zlib123/win32/Makefile.emx | 69 - updater/zlib123/win32/Makefile.gcc | 141 - updater/zlib123/win32/Makefile.msc | 126 - updater/zlib123/win32/VisualC.txt | 3 - updater/zlib123/win32/zlib.def | 60 - updater/zlib123/win32/zlib1.rc | 39 - updater/zlib123/zconf.h | 332 - updater/zlib123/zconf.in.h | 332 - updater/zlib123/zlib.3 | 159 - updater/zlib123/zlib.h | 1357 - updater/zlib123/zutil.c | 319 - updater/zlib123/zutil.h | 269 - 280 files changed, 68021 insertions(+), 107952 deletions(-) create mode 100644 updater/ezxml.c create mode 100644 updater/ezxml.h delete mode 100644 updater/str_utils.cpp delete mode 100644 updater/str_utils.h delete mode 100644 updater/tinystr.cpp delete mode 100644 updater/tinystr.h delete mode 100644 updater/tinyxml.cpp delete mode 100644 updater/tinyxml.h delete mode 100644 updater/tinyxmlerror.cpp delete mode 100644 updater/tinyxmlparser.cpp create mode 100644 updater/updater.def create mode 100644 updater/zbin/minizip/crypt.h create mode 100644 updater/zbin/minizip/ioapi.c create mode 100644 updater/zbin/minizip/ioapi.h create mode 100644 updater/zbin/minizip/iowin32.c create mode 100644 updater/zbin/minizip/iowin32.h create mode 100644 updater/zbin/minizip/miniunz.c create mode 100644 updater/zbin/minizip/munzip.c create mode 100644 updater/zbin/minizip/munzip.h create mode 100644 updater/zbin/minizip/mzip.c create mode 100644 updater/zbin/minizip/mzip.h create mode 100644 updater/zbin/minizip/mztools.c create mode 100644 updater/zbin/minizip/mztools.h create mode 100644 updater/zbin/x32/zlib.lib create mode 100644 updater/zbin/x64/zlib.lib create mode 100644 updater/zbin/zconf.h create mode 100644 updater/zbin/zlib.h delete mode 100644 updater/zlib123/ChangeLog delete mode 100644 updater/zlib123/FAQ delete mode 100644 updater/zlib123/INDEX delete mode 100644 updater/zlib123/Makefile delete mode 100644 updater/zlib123/Makefile.in delete mode 100644 updater/zlib123/README delete mode 100644 updater/zlib123/adler32.c delete mode 100644 updater/zlib123/algorithm.txt delete mode 100644 updater/zlib123/amiga/Makefile.pup delete mode 100644 updater/zlib123/amiga/Makefile.sas delete mode 100644 updater/zlib123/as400/bndsrc delete mode 100644 updater/zlib123/as400/compile.clp delete mode 100644 updater/zlib123/as400/readme.txt delete mode 100644 updater/zlib123/as400/zlib.inc delete mode 100644 updater/zlib123/compress_zlib.c delete mode 100644 updater/zlib123/configure delete mode 100644 updater/zlib123/contrib/README.contrib delete mode 100644 updater/zlib123/contrib/ada/buffer_demo.adb delete mode 100644 updater/zlib123/contrib/ada/mtest.adb delete mode 100644 updater/zlib123/contrib/ada/read.adb delete mode 100644 updater/zlib123/contrib/ada/readme.txt delete mode 100644 updater/zlib123/contrib/ada/test.adb delete mode 100644 updater/zlib123/contrib/ada/zlib-streams.adb delete mode 100644 updater/zlib123/contrib/ada/zlib-streams.ads delete mode 100644 updater/zlib123/contrib/ada/zlib-thin.adb delete mode 100644 updater/zlib123/contrib/ada/zlib-thin.ads delete mode 100644 updater/zlib123/contrib/ada/zlib.adb delete mode 100644 updater/zlib123/contrib/ada/zlib.ads delete mode 100644 updater/zlib123/contrib/ada/zlib.gpr delete mode 100644 updater/zlib123/contrib/asm586/README.586 delete mode 100644 updater/zlib123/contrib/asm586/match.S delete mode 100644 updater/zlib123/contrib/asm686/README.686 delete mode 100644 updater/zlib123/contrib/asm686/match.S delete mode 100644 updater/zlib123/contrib/blast/Makefile delete mode 100644 updater/zlib123/contrib/blast/README delete mode 100644 updater/zlib123/contrib/blast/blast.c delete mode 100644 updater/zlib123/contrib/blast/blast.h delete mode 100644 updater/zlib123/contrib/blast/test.pk delete mode 100644 updater/zlib123/contrib/blast/test.txt delete mode 100644 updater/zlib123/contrib/delphi/ZLib.pas delete mode 100644 updater/zlib123/contrib/delphi/ZLibConst.pas delete mode 100644 updater/zlib123/contrib/delphi/readme.txt delete mode 100644 updater/zlib123/contrib/delphi/zlibd32.mak delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib.build delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib.chm delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib.sln delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib/AssemblyInfo.cs delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib/ChecksumImpl.cs delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib/CircularBuffer.cs delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib/CodecBase.cs delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib/Deflater.cs delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib/DotZLib.cs delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib/DotZLib.csproj delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib/GZipStream.cs delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib/Inflater.cs delete mode 100644 updater/zlib123/contrib/dotzlib/DotZLib/UnitTests.cs delete mode 100644 updater/zlib123/contrib/dotzlib/LICENSE_1_0.txt delete mode 100644 updater/zlib123/contrib/dotzlib/readme.txt delete mode 100644 updater/zlib123/contrib/infback9/README delete mode 100644 updater/zlib123/contrib/infback9/infback9.c delete mode 100644 updater/zlib123/contrib/infback9/infback9.h delete mode 100644 updater/zlib123/contrib/infback9/inffix9.h delete mode 100644 updater/zlib123/contrib/infback9/inflate9.h delete mode 100644 updater/zlib123/contrib/infback9/inftree9.c delete mode 100644 updater/zlib123/contrib/infback9/inftree9.h delete mode 100644 updater/zlib123/contrib/inflate86/inffas86.c delete mode 100644 updater/zlib123/contrib/inflate86/inffast.S delete mode 100644 updater/zlib123/contrib/iostream/test.cpp delete mode 100644 updater/zlib123/contrib/iostream/zfstream.cpp delete mode 100644 updater/zlib123/contrib/iostream/zfstream.h delete mode 100644 updater/zlib123/contrib/iostream2/zstream.h delete mode 100644 updater/zlib123/contrib/iostream2/zstream_test.cpp delete mode 100644 updater/zlib123/contrib/iostream3/README delete mode 100644 updater/zlib123/contrib/iostream3/TODO delete mode 100644 updater/zlib123/contrib/iostream3/test.cc delete mode 100644 updater/zlib123/contrib/iostream3/zfstream.cc delete mode 100644 updater/zlib123/contrib/iostream3/zfstream.h delete mode 100644 updater/zlib123/contrib/masm686/match.asm delete mode 100644 updater/zlib123/contrib/masmx64/bld_ml64.bat delete mode 100644 updater/zlib123/contrib/masmx64/gvmat64.asm delete mode 100644 updater/zlib123/contrib/masmx64/gvmat64.obj delete mode 100644 updater/zlib123/contrib/masmx64/inffas8664.c delete mode 100644 updater/zlib123/contrib/masmx64/inffasx64.asm delete mode 100644 updater/zlib123/contrib/masmx64/inffasx64.obj delete mode 100644 updater/zlib123/contrib/masmx64/readme.txt delete mode 100644 updater/zlib123/contrib/masmx86/bld_ml32.bat delete mode 100644 updater/zlib123/contrib/masmx86/gvmat32.asm delete mode 100644 updater/zlib123/contrib/masmx86/gvmat32.obj delete mode 100644 updater/zlib123/contrib/masmx86/gvmat32c.c delete mode 100644 updater/zlib123/contrib/masmx86/inffas32.asm delete mode 100644 updater/zlib123/contrib/masmx86/inffas32.obj delete mode 100644 updater/zlib123/contrib/masmx86/mkasm.bat delete mode 100644 updater/zlib123/contrib/masmx86/readme.txt delete mode 100644 updater/zlib123/contrib/minizip/ChangeLogUnzip delete mode 100644 updater/zlib123/contrib/minizip/Makefile delete mode 100644 updater/zlib123/contrib/minizip/crypt.h delete mode 100644 updater/zlib123/contrib/minizip/ioapi.c delete mode 100644 updater/zlib123/contrib/minizip/ioapi.h delete mode 100644 updater/zlib123/contrib/minizip/iowin32.c delete mode 100644 updater/zlib123/contrib/minizip/iowin32.h delete mode 100644 updater/zlib123/contrib/minizip/miniunz.c delete mode 100644 updater/zlib123/contrib/minizip/minizip.c delete mode 100644 updater/zlib123/contrib/minizip/munzip.c delete mode 100644 updater/zlib123/contrib/minizip/munzip.h delete mode 100644 updater/zlib123/contrib/minizip/mzip.c delete mode 100644 updater/zlib123/contrib/minizip/mzip.h delete mode 100644 updater/zlib123/contrib/minizip/mztools.c delete mode 100644 updater/zlib123/contrib/minizip/mztools.h delete mode 100644 updater/zlib123/contrib/pascal/example.pas delete mode 100644 updater/zlib123/contrib/pascal/readme.txt delete mode 100644 updater/zlib123/contrib/pascal/zlibd32.mak delete mode 100644 updater/zlib123/contrib/pascal/zlibpas.pas delete mode 100644 updater/zlib123/contrib/puff/Makefile delete mode 100644 updater/zlib123/contrib/puff/README delete mode 100644 updater/zlib123/contrib/puff/puff.c delete mode 100644 updater/zlib123/contrib/puff/puff.h delete mode 100644 updater/zlib123/contrib/puff/zeros.raw delete mode 100644 updater/zlib123/contrib/testzlib/testzlib.c delete mode 100644 updater/zlib123/contrib/testzlib/testzlib.txt delete mode 100644 updater/zlib123/contrib/untgz/Makefile delete mode 100644 updater/zlib123/contrib/untgz/Makefile.msc delete mode 100644 updater/zlib123/contrib/untgz/untgz.c delete mode 100644 updater/zlib123/contrib/vstudio/readme.txt delete mode 100644 updater/zlib123/contrib/vstudio/vc7/miniunz.vcproj delete mode 100644 updater/zlib123/contrib/vstudio/vc7/minizip.vcproj delete mode 100644 updater/zlib123/contrib/vstudio/vc7/testzlib.vcproj delete mode 100644 updater/zlib123/contrib/vstudio/vc7/zlib.rc delete mode 100644 updater/zlib123/contrib/vstudio/vc7/zlibstat.vcproj delete mode 100644 updater/zlib123/contrib/vstudio/vc7/zlibvc.def delete mode 100644 updater/zlib123/contrib/vstudio/vc7/zlibvc.sln delete mode 100644 updater/zlib123/contrib/vstudio/vc7/zlibvc.vcproj delete mode 100644 updater/zlib123/contrib/vstudio/vc8/miniunz.vcproj delete mode 100644 updater/zlib123/contrib/vstudio/vc8/minizip.vcproj delete mode 100644 updater/zlib123/contrib/vstudio/vc8/testzlib.vcproj delete mode 100644 updater/zlib123/contrib/vstudio/vc8/testzlibdll.vcproj delete mode 100644 updater/zlib123/contrib/vstudio/vc8/zlib.rc delete mode 100644 updater/zlib123/contrib/vstudio/vc8/zlibstat.vcproj delete mode 100644 updater/zlib123/contrib/vstudio/vc8/zlibvc.def delete mode 100644 updater/zlib123/contrib/vstudio/vc8/zlibvc.sln delete mode 100644 updater/zlib123/contrib/vstudio/vc8/zlibvc.vcproj delete mode 100644 updater/zlib123/crc32.c delete mode 100644 updater/zlib123/crc32.h delete mode 100644 updater/zlib123/deflate.c delete mode 100644 updater/zlib123/deflate.h delete mode 100644 updater/zlib123/example.c delete mode 100644 updater/zlib123/examples/README.examples delete mode 100644 updater/zlib123/examples/fitblk.c delete mode 100644 updater/zlib123/examples/gun.c delete mode 100644 updater/zlib123/examples/gzappend.c delete mode 100644 updater/zlib123/examples/gzjoin.c delete mode 100644 updater/zlib123/examples/gzlog.c delete mode 100644 updater/zlib123/examples/gzlog.h delete mode 100644 updater/zlib123/examples/zlib_how.html delete mode 100644 updater/zlib123/examples/zpipe.c delete mode 100644 updater/zlib123/examples/zran.c delete mode 100644 updater/zlib123/gzio.c delete mode 100644 updater/zlib123/infback.c delete mode 100644 updater/zlib123/inffast.c delete mode 100644 updater/zlib123/inffast.h delete mode 100644 updater/zlib123/inffixed.h delete mode 100644 updater/zlib123/inflate.c delete mode 100644 updater/zlib123/inflate.h delete mode 100644 updater/zlib123/inftrees.c delete mode 100644 updater/zlib123/inftrees.h delete mode 100644 updater/zlib123/make_vms.com delete mode 100644 updater/zlib123/minigzip.c delete mode 100644 updater/zlib123/msdos/Makefile.bor delete mode 100644 updater/zlib123/msdos/Makefile.dj2 delete mode 100644 updater/zlib123/msdos/Makefile.emx delete mode 100644 updater/zlib123/msdos/Makefile.msc delete mode 100644 updater/zlib123/msdos/Makefile.tc delete mode 100644 updater/zlib123/old/Makefile.riscos delete mode 100644 updater/zlib123/old/README delete mode 100644 updater/zlib123/old/descrip.mms delete mode 100644 updater/zlib123/old/os2/Makefile.os2 delete mode 100644 updater/zlib123/old/os2/zlib.def delete mode 100644 updater/zlib123/old/visual-basic.txt delete mode 100644 updater/zlib123/old/zlib.html delete mode 100644 updater/zlib123/projects/README.projects delete mode 100644 updater/zlib123/projects/visualc6/README.txt delete mode 100644 updater/zlib123/projects/visualc6/example.dsp delete mode 100644 updater/zlib123/projects/visualc6/minigzip.dsp delete mode 100644 updater/zlib123/projects/visualc6/zlib.dsp delete mode 100644 updater/zlib123/projects/visualc6/zlib.dsw delete mode 100644 updater/zlib123/qnx/package.qpg delete mode 100644 updater/zlib123/trees.c delete mode 100644 updater/zlib123/trees.h delete mode 100644 updater/zlib123/uncompr.c delete mode 100644 updater/zlib123/win32/DLL_FAQ.txt delete mode 100644 updater/zlib123/win32/Makefile.bor delete mode 100644 updater/zlib123/win32/Makefile.emx delete mode 100644 updater/zlib123/win32/Makefile.gcc delete mode 100644 updater/zlib123/win32/Makefile.msc delete mode 100644 updater/zlib123/win32/VisualC.txt delete mode 100644 updater/zlib123/win32/zlib.def delete mode 100644 updater/zlib123/win32/zlib1.rc delete mode 100644 updater/zlib123/zconf.h delete mode 100644 updater/zlib123/zconf.in.h delete mode 100644 updater/zlib123/zlib.3 delete mode 100644 updater/zlib123/zlib.h delete mode 100644 updater/zlib123/zutil.c delete mode 100644 updater/zlib123/zutil.h diff --git a/updater/allocations.h b/updater/allocations.h index ee9127a..842d7da 100644 --- a/updater/allocations.h +++ b/updater/allocations.h @@ -32,7 +32,7 @@ protected: extern Allocations allocations; -__inline static void *safe_alloc(int bytes) { +__inline static void *safe_alloc(size_t bytes) { if(bytes == 0) return 0; void *ret = malloc(bytes); allocations.push_back(ret); @@ -48,7 +48,7 @@ __inline static char *safe_strdup(const char *s) { __inline static wchar_t *safe_wstrdup(const wchar_t *s) { if(!s) return 0; - wchar_t *ret = wcsdup(s); + wchar_t *ret = _wcsdup(s); allocations.push_back(ret); return ret; } diff --git a/updater/bzip2-1.0.3/CHANGES b/updater/bzip2-1.0.3/CHANGES index e31b03a..6e4f65e 100644 --- a/updater/bzip2-1.0.3/CHANGES +++ b/updater/bzip2-1.0.3/CHANGES @@ -1,3 +1,16 @@ + ------------------------------------------------------------------ + This file is part of bzip2/libbzip2, a program and library for + lossless, block-sorting data compression. + + bzip2/libbzip2 version 1.0.5 of 10 December 2007 + Copyright (C) 1996-2007 Julian Seward + + Please read the WARNING, DISCLAIMER and PATENTS sections in the + README file. + + This program is released under the terms of the license contained + in the file LICENSE. + ------------------------------------------------------------------ 0.9.0 @@ -261,7 +274,7 @@ Fixes some minor bugs since the last version, 1.0.2. decompressor to crash, loop or access memory which does not belong to it. If you are using bzip2 or the library to decompress bitstreams from untrusted sources, an upgrade - to 1.0.3 is recommended. + to 1.0.3 is recommended. This fixes CAN-2005-1260. * The documentation has been converted to XML, from which html and pdf can be derived. @@ -273,3 +286,34 @@ Fixes some minor bugs since the last version, 1.0.2. * The BZ_NO_STDIO cpp symbol was not properly observed in 1.0.2. This has been fixed. + + +1.0.4 (20 Dec 06) +~~~~~~~~~~~~~~~~~ +Fixes some minor bugs since the last version, 1.0.3. + +* Fix file permissions race problem (CAN-2005-0953). + +* Avoid possible segfault in BZ2_bzclose. From Coverity's NetBSD + scan. + +* 'const'/prototype cleanups in the C code. + +* Change default install location to /usr/local, and handle multiple + 'make install's without error. + +* Sanitise file names more carefully in bzgrep. Fixes CAN-2005-0758 + to the extent that applies to bzgrep. + +* Use 'mktemp' rather than 'tempfile' in bzdiff. + +* Tighten up a couple of assertions in blocksort.c following automated + analysis. + +* Fix minor doc/comment bugs. + + +1.0.5 (10 Dec 07) +~~~~~~~~~~~~~~~~~ +Security fix only. Fixes CERT-FI 20469 as it applies to bzip2. + diff --git a/updater/bzip2-1.0.3/LICENSE b/updater/bzip2-1.0.3/LICENSE index e60845b..f420cff 100644 --- a/updater/bzip2-1.0.3/LICENSE +++ b/updater/bzip2-1.0.3/LICENSE @@ -1,6 +1,8 @@ +-------------------------------------------------------------------------- + This program, "bzip2", the associated library "libbzip2", and all -documentation, are copyright (C) 1996-2005 Julian R Seward. All +documentation, are copyright (C) 1996-2007 Julian R Seward. All rights reserved. Redistribution and use in source and binary forms, with or without @@ -34,7 +36,7 @@ WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -Julian Seward, Cambridge, UK. -jseward@acm.org -bzip2/libbzip2 version 1.0.3 of 15 February 2005 +Julian Seward, jseward@bzip.org +bzip2/libbzip2 version 1.0.5 of 10 December 2007 +-------------------------------------------------------------------------- diff --git a/updater/bzip2-1.0.3/Makefile b/updater/bzip2-1.0.3/Makefile index eea329a..eb09753 100644 --- a/updater/bzip2-1.0.3/Makefile +++ b/updater/bzip2-1.0.3/Makefile @@ -1,3 +1,16 @@ +# ------------------------------------------------------------------ +# This file is part of bzip2/libbzip2, a program and library for +# lossless, block-sorting data compression. +# +# bzip2/libbzip2 version 1.0.5 of 10 December 2007 +# Copyright (C) 1996-2007 Julian Seward +# +# Please read the WARNING, DISCLAIMER and PATENTS sections in the +# README file. +# +# This program is released under the terms of the license contained +# in the file LICENSE. +# ------------------------------------------------------------------ SHELL=/bin/sh @@ -8,10 +21,10 @@ RANLIB=ranlib LDFLAGS= BIGFILES=-D_FILE_OFFSET_BITS=64 -CFLAGS=-Wall -Winline -O -g $(BIGFILES) +CFLAGS=-Wall -Winline -O2 -g $(BIGFILES) # Where you want it installed when you do 'make install' -PREFIX=/usr +PREFIX=/usr/local OBJS= blocksort.o \ @@ -77,14 +90,14 @@ install: bzip2 bzip2recover cp -f libbz2.a $(PREFIX)/lib chmod a+r $(PREFIX)/lib/libbz2.a cp -f bzgrep $(PREFIX)/bin/bzgrep - ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep - ln $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep + ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzegrep + ln -s -f $(PREFIX)/bin/bzgrep $(PREFIX)/bin/bzfgrep chmod a+x $(PREFIX)/bin/bzgrep cp -f bzmore $(PREFIX)/bin/bzmore - ln $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless + ln -s -f $(PREFIX)/bin/bzmore $(PREFIX)/bin/bzless chmod a+x $(PREFIX)/bin/bzmore cp -f bzdiff $(PREFIX)/bin/bzdiff - ln $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp + ln -s -f $(PREFIX)/bin/bzdiff $(PREFIX)/bin/bzcmp chmod a+x $(PREFIX)/bin/bzdiff cp -f bzgrep.1 bzmore.1 bzdiff.1 $(PREFIX)/man/man1 chmod a+r $(PREFIX)/man/man1/bzgrep.1 @@ -124,10 +137,10 @@ bzip2recover.o: bzip2recover.c distclean: clean rm -f manual.ps manual.html manual.pdf -DISTNAME=bzip2-1.0.3 +DISTNAME=bzip2-1.0.5 dist: check manual rm -f $(DISTNAME) - ln -sf . $(DISTNAME) + ln -s -f . $(DISTNAME) tar cvf $(DISTNAME).tar \ $(DISTNAME)/blocksort.c \ $(DISTNAME)/huffman.c \ @@ -167,7 +180,6 @@ dist: check manual $(DISTNAME)/libbz2.dsp \ $(DISTNAME)/dlltest.dsp \ $(DISTNAME)/makefile.msc \ - $(DISTNAME)/Y2K_INFO \ $(DISTNAME)/unzcrash.c \ $(DISTNAME)/spewG.c \ $(DISTNAME)/mk251.c \ diff --git a/updater/bzip2-1.0.3/Makefile-libbz2_so b/updater/bzip2-1.0.3/Makefile-libbz2_so index 458c5a1..9a13c77 100644 --- a/updater/bzip2-1.0.3/Makefile-libbz2_so +++ b/updater/bzip2-1.0.3/Makefile-libbz2_so @@ -1,15 +1,30 @@ # This Makefile builds a shared version of the library, -# libbz2.so.1.0.3, with soname libbz2.so.1.0, +# libbz2.so.1.0.4, with soname libbz2.so.1.0, # at least on x86-Linux (RedHat 7.2), # with gcc-2.96 20000731 (Red Hat Linux 7.1 2.96-98). -# Please see the README file for some -# important info about building the library like this. +# Please see the README file for some important info +# about building the library like this. + +# ------------------------------------------------------------------ +# This file is part of bzip2/libbzip2, a program and library for +# lossless, block-sorting data compression. +# +# bzip2/libbzip2 version 1.0.5 of 10 December 2007 +# Copyright (C) 1996-2007 Julian Seward +# +# Please read the WARNING, DISCLAIMER and PATENTS sections in the +# README file. +# +# This program is released under the terms of the license contained +# in the file LICENSE. +# ------------------------------------------------------------------ + SHELL=/bin/sh CC=gcc BIGFILES=-D_FILE_OFFSET_BITS=64 -CFLAGS=-fpic -fPIC -Wall -Winline -O -g +CFLAGS=-fpic -fPIC -Wall -Winline -O2 -g $(BIGFILES) OBJS= blocksort.o \ huffman.o \ @@ -20,13 +35,13 @@ OBJS= blocksort.o \ bzlib.o all: $(OBJS) - $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.3 $(OBJS) - $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.3 + $(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.1.0.4 $(OBJS) + $(CC) $(CFLAGS) -o bzip2-shared bzip2.c libbz2.so.1.0.4 rm -f libbz2.so.1.0 - ln -s libbz2.so.1.0.3 libbz2.so.1.0 + ln -s libbz2.so.1.0.4 libbz2.so.1.0 clean: - rm -f $(OBJS) bzip2.o libbz2.so.1.0.3 libbz2.so.1.0 bzip2-shared + rm -f $(OBJS) bzip2.o libbz2.so.1.0.4 libbz2.so.1.0 bzip2-shared blocksort.o: blocksort.c $(CC) $(CFLAGS) -c blocksort.c diff --git a/updater/bzip2-1.0.3/README b/updater/bzip2-1.0.3/README index 1aff448..e17a84e 100644 --- a/updater/bzip2-1.0.3/README +++ b/updater/bzip2-1.0.3/README @@ -1,33 +1,48 @@ -This is the README for bzip2, a block-sorting file compressor, version -1.0.3. This version is fully compatible with the previous public -releases, versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1 and 1.0.2. +This is the README for bzip2/libzip2. +This version is fully compatible with the previous public releases. -bzip2-1.0.3 is distributed under a BSD-style license. For details, -see the file LICENSE. +------------------------------------------------------------------ +This file is part of bzip2/libbzip2, a program and library for +lossless, block-sorting data compression. + +bzip2/libbzip2 version 1.0.5 of 10 December 2007 +Copyright (C) 1996-2007 Julian Seward + +Please read the WARNING, DISCLAIMER and PATENTS sections in this file. + +This program is released under the terms of the license contained +in the file LICENSE. +------------------------------------------------------------------ Complete documentation is available in Postscript form (manual.ps), PDF (manual.pdf) or html (manual.html). A plain-text version of the -manual page is available as bzip2.txt. A statement about Y2K issues -is now included in the file Y2K_INFO. +manual page is available as bzip2.txt. HOW TO BUILD -- UNIX -Type `make'. This builds the library libbz2.a and then the -programs bzip2 and bzip2recover. Six self-tests are run. -If the self-tests complete ok, carry on to installation: +Type 'make'. This builds the library libbz2.a and then the programs +bzip2 and bzip2recover. Six self-tests are run. If the self-tests +complete ok, carry on to installation: + +To install in /usr/local/bin, /usr/local/lib, /usr/local/man and +/usr/local/include, type -To install in /usr/bin, /usr/lib, /usr/man and /usr/include, type make install -To install somewhere else, eg, /xxx/yyy/{bin,lib,man,include}, type + +To install somewhere else, eg, /xxx/yyy/{bin,lib,man,include}, type + make install PREFIX=/xxx/yyy + If you are (justifiably) paranoid and want to see what 'make install' is going to do, you can first do + make -n install or make -n install PREFIX=/xxx/yyy respectively. -The -n instructs make to show the commands it would execute, but -not actually execute them. + +The -n instructs make to show the commands it would execute, but not +actually execute them. HOW TO BUILD -- UNIX, shared library libbz2.so. @@ -49,23 +64,25 @@ Important note for people upgrading .so's from 0.9.0/0.9.5 to version bzCompress to BZ2_bzCompress, to avoid namespace pollution. Unfortunately this means that the libbz2.so created by Makefile-libbz2_so will not work with any program which used an older -version of the library. Sorry. I do encourage library clients to -make the effort to upgrade to use version 1.0, since it is both faster -and more robust than previous versions. +version of the library. I do encourage library clients to make the +effort to upgrade to use version 1.0, since it is both faster and more +robust than previous versions. HOW TO BUILD -- Windows 95, NT, DOS, Mac, etc. It's difficult for me to support compilation on all these platforms. My approach is to collect binaries for these platforms, and put them -on the master web page (http://sources.redhat.com/bzip2). Look there. -However (FWIW), bzip2-1.0.X is very standard ANSI C and should compile +on the master web site (http://www.bzip.org). Look there. However +(FWIW), bzip2-1.0.X is very standard ANSI C and should compile unmodified with MS Visual C. If you have difficulties building, you might want to read README.COMPILATION.PROBLEMS. At least using MS Visual C++ 6, you can build from the unmodified sources by issuing, in a command shell: + nmake -f makefile.msc + (you may need to first run the MSVC-provided script VCVARS32.BAT so as to set up paths to the MSVC tools correctly). @@ -86,18 +103,19 @@ Please read and be aware of the following: WARNING: - This program (attempts to) compress data by performing several - non-trivial transformations on it. Unless you are 100% familiar - with *all* the algorithms contained herein, and with the - consequences of modifying them, you should NOT meddle with the - compression or decompression machinery. Incorrect changes can and - very likely *will* lead to disastrous loss of data. + This program and library (attempts to) compress data by + performing several non-trivial transformations on it. + Unless you are 100% familiar with *all* the algorithms + contained herein, and with the consequences of modifying them, + you should NOT meddle with the compression or decompression + machinery. Incorrect changes can and very likely *will* + lead to disastrous loss of data. DISCLAIMER: I TAKE NO RESPONSIBILITY FOR ANY LOSS OF DATA ARISING FROM THE - USE OF THIS PROGRAM, HOWSOEVER CAUSED. + USE OF THIS PROGRAM/LIBRARY, HOWSOEVER CAUSED. Every compression of a file implies an assumption that the compressed file can be decompressed to reproduce the original. @@ -110,19 +128,18 @@ DISCLAIMER: PROGRAM UNLESS YOU ARE PREPARED TO ACCEPT THE POSSIBILITY, HOWEVER SMALL, THAT THE DATA WILL NOT BE RECOVERABLE. - That is not to say this program is inherently unreliable. Indeed, - I very much hope the opposite is true. bzip2 has been carefully - constructed and extensively tested. + That is not to say this program is inherently unreliable. + Indeed, I very much hope the opposite is true. bzip2/libbzip2 + has been carefully constructed and extensively tested. PATENTS: - To the best of my knowledge, bzip2 does not use any patented - algorithms. However, I do not have the resources to carry out - a patent search. Therefore I cannot give any guarantee of the - above statement. + To the best of my knowledge, bzip2/libbzip2 does not use any + patented algorithms. However, I do not have the resources + to carry out a patent search. Therefore I cannot give any + guarantee of the above statement. -End of legalities. WHAT'S NEW IN 0.9.0 (as compared to 0.1pl2) ? @@ -156,21 +173,27 @@ WHAT'S NEW IN 1.0.3 ? See the CHANGES file. +WHAT'S NEW IN 1.0.4 ? + + See the CHANGES file. + +WHAT'S NEW IN 1.0.5 ? + + See the CHANGES file. + I hope you find bzip2 useful. Feel free to contact me at jseward@bzip.org if you have any suggestions or queries. Many people mailed me with comments, suggestions and patches after the releases of bzip-0.15, -bzip-0.21, and bzip2 versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1 and -1.0.2, and the changes in bzip2 are largely a result of this feedback. -I thank you for your comments. +bzip-0.21, and bzip2 versions 0.1pl2, 0.9.0, 0.9.5, 1.0.0, 1.0.1, +1.0.2 and 1.0.3, and the changes in bzip2 are largely a result of this +feedback. I thank you for your comments. -At least for the time being, bzip2's "home" is (or can be reached via) -http://www.bzip.org +bzip2's "home" is http://www.bzip.org/ Julian Seward jseward@bzip.org - Cambridge, UK. 18 July 1996 (version 0.15) @@ -183,3 +206,5 @@ Cambridge, UK. 5 May 2000 (bzip2, version 1.0pre8) 30 December 2001 (bzip2, version 1.0.2pre1) 15 February 2005 (bzip2, version 1.0.3) +20 December 2006 (bzip2, version 1.0.4) +10 December 2007 (bzip2, version 1.0.5) diff --git a/updater/bzip2-1.0.3/README.COMPILATION.PROBLEMS b/updater/bzip2-1.0.3/README.COMPILATION.PROBLEMS index f1bc396..22b95c6 100644 --- a/updater/bzip2-1.0.3/README.COMPILATION.PROBLEMS +++ b/updater/bzip2-1.0.3/README.COMPILATION.PROBLEMS @@ -1,32 +1,47 @@ +------------------------------------------------------------------ +This file is part of bzip2/libbzip2, a program and library for +lossless, block-sorting data compression. -bzip2-1.0.3 should compile without problems on the vast majority of +bzip2/libbzip2 version 1.0.5 of 10 December 2007 +Copyright (C) 1996-2007 Julian Seward + +Please read the WARNING, DISCLAIMER and PATENTS sections in the +README file. + +This program is released under the terms of the license contained +in the file LICENSE. +------------------------------------------------------------------ + +bzip2-1.0.5 should compile without problems on the vast majority of platforms. Using the supplied Makefile, I've built and tested it -myself for x86-linux and x86_64-linux. With makefile.msc, Visual C++ +myself for x86-linux and amd64-linux. With makefile.msc, Visual C++ 6.0 and nmake, you can build a native Win32 version too. Large file -support seems to work correctly on at least alpha-tru64unix and -x86-cygwin32 (on Windows 2000). +support seems to work correctly on at least on amd64-linux. When I say "large file" I mean a file of size 2,147,483,648 (2^31) bytes or above. Many older OSs can't handle files above this size, but many newer ones can. Large files are pretty huge -- most files you'll encounter are not Large Files. -Earlier versions of bzip2 (0.1, 0.9.0, 0.9.5) compiled on a wide -variety of platforms without difficulty, and I hope this version will -continue in that tradition. However, in order to support large files, -I've had to include the define -D_FILE_OFFSET_BITS=64 in the Makefile. -This can cause problems. +Early versions of bzip2 (0.1, 0.9.0, 0.9.5) compiled on a wide variety +of platforms without difficulty, and I hope this version will continue +in that tradition. However, in order to support large files, I've had +to include the define -D_FILE_OFFSET_BITS=64 in the Makefile. This +can cause problems. The technique of adding -D_FILE_OFFSET_BITS=64 to get large file support is, as far as I know, the Recommended Way to get correct large file support. For more details, see the Large File Support Specification, published by the Large File Summit, at + http://ftp.sas.com/standards/large.file As a general comment, if you get compilation errors which you think are related to large file support, try removing the above define from the Makefile, ie, delete the line + BIGFILES=-D_FILE_OFFSET_BITS=64 + from the Makefile, and do 'make clean ; make'. This will give you a version of bzip2 without large file support, which, for most applications, is probably not a problem. @@ -37,3 +52,7 @@ You can use the spewG.c program to generate huge files to test bzip2's large file support, if you are feeling paranoid. Be aware though that any compilation problems which affect bzip2 will also affect spewG.c, alas. + +AIX: I have reports that for large file support, you need to specify +-D_LARGE_FILES rather than -D_FILE_OFFSET_BITS=64. I have not tested +this myself. diff --git a/updater/bzip2-1.0.3/README.XML.STUFF b/updater/bzip2-1.0.3/README.XML.STUFF index 0ff209f..1a5b4c5 100644 --- a/updater/bzip2-1.0.3/README.XML.STUFF +++ b/updater/bzip2-1.0.3/README.XML.STUFF @@ -1,3 +1,17 @@ + ---------------------------------------------------------------- + This file is part of bzip2/libbzip2, a program and library for + lossless, block-sorting data compression. + + bzip2/libbzip2 version 1.0.5 of 10 December 2007 + Copyright (C) 1996-2007 Julian Seward + + Please read the WARNING, DISCLAIMER and PATENTS sections in the + README file. + + This program is released under the terms of the license contained + in the file LICENSE. + ---------------------------------------------------------------- + The script xmlproc.sh takes an xml file as input, and processes it to create .pdf, .html or .ps output. It uses format.pl, a perl script to format
 blocks nicely,
@@ -9,16 +23,16 @@ version, year, etc.
 
 Usage:
 
-  xmlproc.sh -v manual.xml
+  ./xmlproc.sh -v manual.xml
   Validates an xml file to ensure no dtd-compliance errors
 
-  xmlproc.sh -html manual.xml
+  ./xmlproc.sh -html manual.xml
   Output: manual.html
 
-  xmlproc.sh -pdf manual.xml
+  ./xmlproc.sh -pdf manual.xml
   Output: manual.pdf
 
-  xmlproc.sh -ps manual.xml
+  ./xmlproc.sh -ps manual.xml
   Output: manual.ps
 
 
diff --git a/updater/bzip2-1.0.3/blocksort.c b/updater/bzip2-1.0.3/blocksort.c
index 33ec9f5..bd2dec1 100644
--- a/updater/bzip2-1.0.3/blocksort.c
+++ b/updater/bzip2-1.0.3/blocksort.c
@@ -4,66 +4,19 @@
 /*---                                           blocksort.c ---*/
 /*-------------------------------------------------------------*/
 
-/*--
-  This file is a part of bzip2 and/or libbzip2, a program and
-  library for lossless, block-sorting data compression.
-
-  Copyright (C) 1996-2005 Julian R Seward.  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions
-  are met:
-
-  1. Redistributions of source code must retain the above copyright
-     notice, this list of conditions and the following disclaimer.
-
-  2. The origin of this software must not be misrepresented; you must 
-     not claim that you wrote the original software.  If you use this 
-     software in a product, an acknowledgment in the product 
-     documentation would be appreciated but is not required.
-
-  3. Altered source versions must be plainly marked as such, and must
-     not be misrepresented as being the original software.
-
-  4. The name of the author may not be used to endorse or promote 
-     products derived from this software without specific prior written 
-     permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-  Julian Seward, Cambridge, UK.
-  jseward@bzip.org
-  bzip2/libbzip2 version 1.0 of 21 March 2000
-
-  This program is based on (at least) the work of:
-     Mike Burrows
-     David Wheeler
-     Peter Fenwick
-     Alistair Moffat
-     Radford Neal
-     Ian H. Witten
-     Robert Sedgewick
-     Jon L. Bentley
-
-  For more information on these sources, see the manual.
-
-  To get some idea how the block sorting algorithms in this file 
-  work, read my paper 
-     On the Performance of BWT Sorting Algorithms
-  in Proceedings of the IEEE Data Compression Conference 2000,
-  Snowbird, Utah, USA, 27-30 March 2000.  The main sort in this
-  file implements the algorithm called  cache  in the paper.
---*/
+/* ------------------------------------------------------------------
+   This file is part of bzip2/libbzip2, a program and library for
+   lossless, block-sorting data compression.
+
+   bzip2/libbzip2 version 1.0.5 of 10 December 2007
+   Copyright (C) 1996-2007 Julian Seward 
+
+   Please read the WARNING, DISCLAIMER and PATENTS sections in the 
+   README file.
+
+   This program is released under the terms of the license contained
+   in the file LICENSE.
+   ------------------------------------------------------------------ */
 
 
 #include "bzlib_private.h"
@@ -155,7 +108,7 @@ void fallbackQSort3 ( UInt32* fmap,
 
    while (sp > 0) {
 
-      AssertH ( sp < FALLBACK_QSORT_STACK_SIZE, 1004 );
+      AssertH ( sp < FALLBACK_QSORT_STACK_SIZE - 1, 1004 );
 
       fpop ( lo, hi );
       if (hi - lo < FALLBACK_QSORT_SMALL_THRESH) {
@@ -690,7 +643,7 @@ void mainQSort3 ( UInt32* ptr,
 
    while (sp > 0) {
 
-      AssertH ( sp < MAIN_QSORT_STACK_SIZE, 1001 );
+      AssertH ( sp < MAIN_QSORT_STACK_SIZE - 2, 1001 );
 
       mpop ( lo, hi, d );
       if (hi - lo < MAIN_QSORT_SMALL_THRESH || 
diff --git a/updater/bzip2-1.0.3/bzip2.c b/updater/bzip2-1.0.3/bzip2.c
index 79f87a5..3904107 100644
--- a/updater/bzip2-1.0.3/bzip2.c
+++ b/updater/bzip2-1.0.3/bzip2.c
@@ -3,118 +3,26 @@
 /*--- A block-sorting, lossless compressor        bzip2.c ---*/
 /*-----------------------------------------------------------*/
 
-/*--
-  This file is a part of bzip2 and/or libbzip2, a program and
-  library for lossless, block-sorting data compression.
-
-  Copyright (C) 1996-2005 Julian R Seward.  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions
-  are met:
-
-  1. Redistributions of source code must retain the above copyright
-     notice, this list of conditions and the following disclaimer.
-
-  2. The origin of this software must not be misrepresented; you must 
-     not claim that you wrote the original software.  If you use this 
-     software in a product, an acknowledgment in the product 
-     documentation would be appreciated but is not required.
-
-  3. Altered source versions must be plainly marked as such, and must
-     not be misrepresented as being the original software.
-
-  4. The name of the author may not be used to endorse or promote 
-     products derived from this software without specific prior written 
-     permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-  Julian Seward, Cambridge, UK.
-  jseward@bzip.org
-  bzip2/libbzip2 version 1.0 of 21 March 2000
-
-  This program is based on (at least) the work of:
-     Mike Burrows
-     David Wheeler
-     Peter Fenwick
-     Alistair Moffat
-     Radford Neal
-     Ian H. Witten
-     Robert Sedgewick
-     Jon L. Bentley
-
-  For more information on these sources, see the manual.
---*/
+/* ------------------------------------------------------------------
+   This file is part of bzip2/libbzip2, a program and library for
+   lossless, block-sorting data compression.
 
+   bzip2/libbzip2 version 1.0.5 of 10 December 2007
+   Copyright (C) 1996-2007 Julian Seward 
 
-/*----------------------------------------------------*/
-/*--- IMPORTANT                                    ---*/
-/*----------------------------------------------------*/
+   Please read the WARNING, DISCLAIMER and PATENTS sections in the 
+   README file.
 
-/*--
-   WARNING:
-      This program and library (attempts to) compress data by 
-      performing several non-trivial transformations on it.  
-      Unless you are 100% familiar with *all* the algorithms 
-      contained herein, and with the consequences of modifying them, 
-      you should NOT meddle with the compression or decompression 
-      machinery.  Incorrect changes can and very likely *will* 
-      lead to disasterous loss of data.
-
-   DISCLAIMER:
-      I TAKE NO RESPONSIBILITY FOR ANY LOSS OF DATA ARISING FROM THE
-      USE OF THIS PROGRAM, HOWSOEVER CAUSED.
-
-      Every compression of a file implies an assumption that the
-      compressed file can be decompressed to reproduce the original.
-      Great efforts in design, coding and testing have been made to
-      ensure that this program works correctly.  However, the
-      complexity of the algorithms, and, in particular, the presence
-      of various special cases in the code which occur with very low
-      but non-zero probability make it impossible to rule out the
-      possibility of bugs remaining in the program.  DO NOT COMPRESS
-      ANY DATA WITH THIS PROGRAM AND/OR LIBRARY UNLESS YOU ARE PREPARED 
-      TO ACCEPT THE POSSIBILITY, HOWEVER SMALL, THAT THE DATA WILL 
-      NOT BE RECOVERABLE.
-
-      That is not to say this program is inherently unreliable.
-      Indeed, I very much hope the opposite is true.  bzip2/libbzip2
-      has been carefully constructed and extensively tested.
-
-   PATENTS:
-      To the best of my knowledge, bzip2/libbzip2 does not use any 
-      patented algorithms.  However, I do not have the resources 
-      available to carry out a full patent search.  Therefore I cannot 
-      give any guarantee of the above statement.
---*/
+   This program is released under the terms of the license contained
+   in the file LICENSE.
+   ------------------------------------------------------------------ */
 
 
-
-/*----------------------------------------------------*/
-/*--- and now for something much more pleasant :-) ---*/
-/*----------------------------------------------------*/
-
-/*---------------------------------------------*/
-/*--
-  Place a 1 beside your platform, and 0 elsewhere.
---*/
-
-/*--
-  Generic 32-bit Unix.
-  Also works on 64-bit Unix boxes.
-  This is the default.
---*/
+/* Place a 1 beside your platform, and 0 elsewhere.
+   Generic 32-bit Unix.
+   Also works on 64-bit Unix boxes.
+   This is the default.
+*/
 #define BZ_UNIX      1
 
 /*--
@@ -302,16 +210,17 @@ Char    progNameReally[FILE_NAME_LEN];
 FILE    *outputHandleJustInCase;
 Int32   workFactor;
 
-static void    panic                 ( Char* )   NORETURN;
-static void    ioError               ( void )    NORETURN;
-static void    outOfMemory           ( void )    NORETURN;
-static void    configError           ( void )    NORETURN;
-static void    crcError              ( void )    NORETURN;
-static void    cleanUpAndFail        ( Int32 )   NORETURN;
-static void    compressedStreamEOF   ( void )    NORETURN;
+static void    panic                 ( const Char* ) NORETURN;
+static void    ioError               ( void )        NORETURN;
+static void    outOfMemory           ( void )        NORETURN;
+static void    configError           ( void )        NORETURN;
+static void    crcError              ( void )        NORETURN;
+static void    cleanUpAndFail        ( Int32 )       NORETURN;
+static void    compressedStreamEOF   ( void )        NORETURN;
 
 static void    copyFileName ( Char*, Char* );
 static void*   myMalloc     ( Int32 );
+static void    applySavedFileAttrToOutputFile ( IntNative fd );
 
 
 
@@ -457,6 +366,9 @@ void compressStream ( FILE *stream, FILE *zStream )
    ret = fflush ( zStream );
    if (ret == EOF) goto errhandler_io;
    if (zStream != stdout) {
+      Int32 fd = fileno ( zStream );
+      if (fd < 0) goto errhandler_io;
+      applySavedFileAttrToOutputFile ( fd );
       ret = fclose ( zStream );
       outputHandleJustInCase = NULL;
       if (ret == EOF) goto errhandler_io;
@@ -569,6 +481,11 @@ Bool uncompressStream ( FILE *zStream, FILE *stream )
 
    closeok:
    if (ferror(zStream)) goto errhandler_io;
+   if (stream != stdout) {
+      Int32 fd = fileno ( stream );
+      if (fd < 0) goto errhandler_io;
+      applySavedFileAttrToOutputFile ( fd );
+   }
    ret = fclose ( zStream );
    if (ret == EOF) goto errhandler_io;
 
@@ -826,7 +743,7 @@ void cleanUpAndFail ( Int32 ec )
 
 /*---------------------------------------------*/
 static 
-void panic ( Char* s )
+void panic ( const Char* s )
 {
    fprintf ( stderr,
              "\n%s: PANIC -- internal consistency error:\n"
@@ -1039,6 +956,7 @@ Bool fileExists ( Char* name )
    For non-Unix platforms, if we are not worrying about
    security issues, simple this simply behaves like fopen.
 */
+static
 FILE* fopen_output_safely ( Char* name, const char* mode )
 {
 #  if BZ_UNIX
@@ -1129,7 +1047,7 @@ void saveInputFileMetaInfo ( Char *srcName )
 
 
 static 
-void applySavedMetaInfoToOutputFile ( Char *dstName )
+void applySavedTimeInfoToOutputFile ( Char *dstName )
 {
 #  if BZ_UNIX
    IntNative      retVal;
@@ -1138,13 +1056,21 @@ void applySavedMetaInfoToOutputFile ( Char *dstName )
    uTimBuf.actime = fileMetaInfo.st_atime;
    uTimBuf.modtime = fileMetaInfo.st_mtime;
 
-   retVal = chmod ( dstName, fileMetaInfo.st_mode );
+   retVal = utime ( dstName, &uTimBuf );
    ERROR_IF_NOT_ZERO ( retVal );
+#  endif
+}
 
-   retVal = utime ( dstName, &uTimBuf );
+static 
+void applySavedFileAttrToOutputFile ( IntNative fd )
+{
+#  if BZ_UNIX
+   IntNative retVal;
+
+   retVal = fchmod ( fd, fileMetaInfo.st_mode );
    ERROR_IF_NOT_ZERO ( retVal );
 
-   retVal = chown ( dstName, fileMetaInfo.st_uid, fileMetaInfo.st_gid );
+   (void) fchown ( fd, fileMetaInfo.st_uid, fileMetaInfo.st_gid );
    /* chown() will in many cases return with EPERM, which can
       be safely ignored.
    */
@@ -1175,13 +1101,13 @@ Bool containsDubiousChars ( Char* name )
 /*---------------------------------------------*/
 #define BZ_N_SUFFIX_PAIRS 4
 
-Char* zSuffix[BZ_N_SUFFIX_PAIRS] 
+const Char* zSuffix[BZ_N_SUFFIX_PAIRS] 
    = { ".bz2", ".bz", ".tbz2", ".tbz" };
-Char* unzSuffix[BZ_N_SUFFIX_PAIRS] 
+const Char* unzSuffix[BZ_N_SUFFIX_PAIRS] 
    = { "", "", ".tar", ".tar" };
 
 static 
-Bool hasSuffix ( Char* s, Char* suffix )
+Bool hasSuffix ( Char* s, const Char* suffix )
 {
    Int32 ns = strlen(s);
    Int32 nx = strlen(suffix);
@@ -1192,7 +1118,8 @@ Bool hasSuffix ( Char* s, Char* suffix )
 
 static 
 Bool mapSuffix ( Char* name, 
-                 Char* oldSuffix, Char* newSuffix )
+                 const Char* oldSuffix, 
+                 const Char* newSuffix )
 {
    if (!hasSuffix(name,oldSuffix)) return False;
    name[strlen(name)-strlen(oldSuffix)] = 0;
@@ -1217,8 +1144,8 @@ void compress ( Char *name )
 
    switch (srcMode) {
       case SM_I2O: 
-         copyFileName ( inName, "(stdin)" );
-         copyFileName ( outName, "(stdout)" ); 
+         copyFileName ( inName, (Char*)"(stdin)" );
+         copyFileName ( outName, (Char*)"(stdout)" ); 
          break;
       case SM_F2F: 
          copyFileName ( inName, name );
@@ -1227,7 +1154,7 @@ void compress ( Char *name )
          break;
       case SM_F2O: 
          copyFileName ( inName, name );
-         copyFileName ( outName, "(stdout)" ); 
+         copyFileName ( outName, (Char*)"(stdout)" ); 
          break;
    }
 
@@ -1370,7 +1297,7 @@ void compress ( Char *name )
 
    /*--- If there was an I/O error, we won't get here. ---*/
    if ( srcMode == SM_F2F ) {
-      applySavedMetaInfoToOutputFile ( outName );
+      applySavedTimeInfoToOutputFile ( outName );
       deleteOutputOnInterrupt = False;
       if ( !keepInputFiles ) {
          IntNative retVal = remove ( inName );
@@ -1401,8 +1328,8 @@ void uncompress ( Char *name )
    cantGuess = False;
    switch (srcMode) {
       case SM_I2O: 
-         copyFileName ( inName, "(stdin)" );
-         copyFileName ( outName, "(stdout)" ); 
+         copyFileName ( inName, (Char*)"(stdin)" );
+         copyFileName ( outName, (Char*)"(stdout)" ); 
          break;
       case SM_F2F: 
          copyFileName ( inName, name );
@@ -1415,7 +1342,7 @@ void uncompress ( Char *name )
          break;
       case SM_F2O: 
          copyFileName ( inName, name );
-         copyFileName ( outName, "(stdout)" ); 
+         copyFileName ( outName, (Char*)"(stdout)" ); 
          break;
    }
 
@@ -1548,7 +1475,7 @@ void uncompress ( Char *name )
    /*--- If there was an I/O error, we won't get here. ---*/
    if ( magicNumberOK ) {
       if ( srcMode == SM_F2F ) {
-         applySavedMetaInfoToOutputFile ( outName );
+         applySavedTimeInfoToOutputFile ( outName );
          deleteOutputOnInterrupt = False;
          if ( !keepInputFiles ) {
             IntNative retVal = remove ( inName );
@@ -1593,9 +1520,9 @@ void testf ( Char *name )
    if (name == NULL && srcMode != SM_I2O)
       panic ( "testf: bad modes\n" );
 
-   copyFileName ( outName, "(none)" );
+   copyFileName ( outName, (Char*)"(none)" );
    switch (srcMode) {
-      case SM_I2O: copyFileName ( inName, "(stdin)" ); break;
+      case SM_I2O: copyFileName ( inName, (Char*)"(stdin)" ); break;
       case SM_F2F: copyFileName ( inName, name ); break;
       case SM_F2O: copyFileName ( inName, name ); break;
    }
@@ -1678,11 +1605,11 @@ void license ( void )
     "bzip2, a block-sorting file compressor.  "
     "Version %s.\n"
     "   \n"
-    "   Copyright (C) 1996-2005 by Julian Seward.\n"
+    "   Copyright (C) 1996-2007 by Julian Seward.\n"
     "   \n"
     "   This program is free software; you can redistribute it and/or modify\n"
     "   it under the terms set out in the LICENSE file, which is included\n"
-    "   in the bzip2-1.0 source distribution.\n"
+    "   in the bzip2-1.0.5 source distribution.\n"
     "   \n"
     "   This program is distributed in the hope that it will be useful,\n"
     "   but WITHOUT ANY WARRANTY; without even the implied warranty of\n"
@@ -1885,8 +1812,8 @@ IntNative main ( IntNative argc, Char *argv[] )
 #  endif
 #  endif
 
-   copyFileName ( inName,  "(none)" );
-   copyFileName ( outName, "(none)" );
+   copyFileName ( inName,  (Char*)"(none)" );
+   copyFileName ( outName, (Char*)"(none)" );
 
    copyFileName ( progNameReally, argv[0] );
    progName = &progNameReally[0];
@@ -1898,8 +1825,8 @@ IntNative main ( IntNative argc, Char *argv[] )
         expand filename wildcards in arg list.
    --*/
    argList = NULL;
-   addFlagsFromEnvVar ( &argList,  "BZIP2" );
-   addFlagsFromEnvVar ( &argList,  "BZIP" );
+   addFlagsFromEnvVar ( &argList,  (Char*)"BZIP2" );
+   addFlagsFromEnvVar ( &argList,  (Char*)"BZIP" );
    for (i = 1; i <= argc-1; i++)
       APPEND_FILESPEC(argList, argv[i]);
 
diff --git a/updater/bzip2-1.0.3/bzip2recover.c b/updater/bzip2-1.0.3/bzip2recover.c
index 5cd405d..5f6d621 100644
--- a/updater/bzip2-1.0.3/bzip2recover.c
+++ b/updater/bzip2-1.0.3/bzip2recover.c
@@ -1,56 +1,24 @@
-
 /*-----------------------------------------------------------*/
 /*--- Block recoverer program for bzip2                   ---*/
 /*---                                      bzip2recover.c ---*/
 /*-----------------------------------------------------------*/
 
-/*--
-  This program is bzip2recover, a program to attempt data 
-  salvage from damaged files created by the accompanying
-  bzip2-1.0.3 program.
-
-  Copyright (C) 1996-2005 Julian R Seward.  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions
-  are met:
-
-  1. Redistributions of source code must retain the above copyright
-     notice, this list of conditions and the following disclaimer.
-
-  2. The origin of this software must not be misrepresented; you must 
-     not claim that you wrote the original software.  If you use this 
-     software in a product, an acknowledgment in the product 
-     documentation would be appreciated but is not required.
-
-  3. Altered source versions must be plainly marked as such, and must
-     not be misrepresented as being the original software.
-
-  4. The name of the author may not be used to endorse or promote 
-     products derived from this software without specific prior written 
-     permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-  Julian Seward, Cambridge, UK.
-  jseward@bzip.org
-  bzip2/libbzip2 version 1.0.3 of 15 February 2005
---*/
+/* ------------------------------------------------------------------
+   This file is part of bzip2/libbzip2, a program and library for
+   lossless, block-sorting data compression.
 
-/*--
-  This program is a complete hack and should be rewritten
-  properly.  It isn't very complicated.
---*/
+   bzip2/libbzip2 version 1.0.5 of 10 December 2007
+   Copyright (C) 1996-2007 Julian Seward 
+
+   Please read the WARNING, DISCLAIMER and PATENTS sections in the 
+   README file.
+
+   This program is released under the terms of the license contained
+   in the file LICENSE.
+   ------------------------------------------------------------------ */
+
+/* This program is a complete hack and should be rewritten properly.
+	 It isn't very complicated. */
 
 #include 
 #include 
@@ -114,7 +82,7 @@ MaybeUInt64 bytesIn  = 0;
 /*---------------------------------------------------*/
 
 /*---------------------------------------------*/
-void readError ( void )
+static void readError ( void )
 {
    fprintf ( stderr,
              "%s: I/O error reading `%s', possible reason follows.\n",
@@ -127,7 +95,7 @@ void readError ( void )
 
 
 /*---------------------------------------------*/
-void writeError ( void )
+static void writeError ( void )
 {
    fprintf ( stderr,
              "%s: I/O error reading `%s', possible reason follows.\n",
@@ -140,7 +108,7 @@ void writeError ( void )
 
 
 /*---------------------------------------------*/
-void mallocFail ( Int32 n )
+static void mallocFail ( Int32 n )
 {
    fprintf ( stderr,
              "%s: malloc failed on request for %d bytes.\n",
@@ -152,7 +120,7 @@ void mallocFail ( Int32 n )
 
 
 /*---------------------------------------------*/
-void tooManyBlocks ( Int32 max_handled_blocks )
+static void tooManyBlocks ( Int32 max_handled_blocks )
 {
    fprintf ( stderr,
              "%s: `%s' appears to contain more than %d blocks\n",
@@ -183,7 +151,7 @@ typedef
 
 
 /*---------------------------------------------*/
-BitStream* bsOpenReadStream ( FILE* stream )
+static BitStream* bsOpenReadStream ( FILE* stream )
 {
    BitStream *bs = malloc ( sizeof(BitStream) );
    if (bs == NULL) mallocFail ( sizeof(BitStream) );
@@ -196,7 +164,7 @@ BitStream* bsOpenReadStream ( FILE* stream )
 
 
 /*---------------------------------------------*/
-BitStream* bsOpenWriteStream ( FILE* stream )
+static BitStream* bsOpenWriteStream ( FILE* stream )
 {
    BitStream *bs = malloc ( sizeof(BitStream) );
    if (bs == NULL) mallocFail ( sizeof(BitStream) );
@@ -209,7 +177,7 @@ BitStream* bsOpenWriteStream ( FILE* stream )
 
 
 /*---------------------------------------------*/
-void bsPutBit ( BitStream* bs, Int32 bit )
+static void bsPutBit ( BitStream* bs, Int32 bit )
 {
    if (bs->buffLive == 8) {
       Int32 retVal = putc ( (UChar) bs->buffer, bs->handle );
@@ -228,7 +196,7 @@ void bsPutBit ( BitStream* bs, Int32 bit )
 /*--
    Returns 0 or 1, or 2 to indicate EOF.
 --*/
-Int32 bsGetBit ( BitStream* bs )
+static Int32 bsGetBit ( BitStream* bs )
 {
    if (bs->buffLive > 0) {
       bs->buffLive --;
@@ -247,7 +215,7 @@ Int32 bsGetBit ( BitStream* bs )
 
 
 /*---------------------------------------------*/
-void bsClose ( BitStream* bs )
+static void bsClose ( BitStream* bs )
 {
    Int32 retVal;
 
@@ -271,7 +239,7 @@ void bsClose ( BitStream* bs )
 
 
 /*---------------------------------------------*/
-void bsPutUChar ( BitStream* bs, UChar c )
+static void bsPutUChar ( BitStream* bs, UChar c )
 {
    Int32 i;
    for (i = 7; i >= 0; i--)
@@ -280,7 +248,7 @@ void bsPutUChar ( BitStream* bs, UChar c )
 
 
 /*---------------------------------------------*/
-void bsPutUInt32 ( BitStream* bs, UInt32 c )
+static void bsPutUInt32 ( BitStream* bs, UInt32 c )
 {
    Int32 i;
 
@@ -290,7 +258,7 @@ void bsPutUInt32 ( BitStream* bs, UInt32 c )
 
 
 /*---------------------------------------------*/
-Bool endsInBz2 ( Char* name )
+static Bool endsInBz2 ( Char* name )
 {
    Int32 n = strlen ( name );
    if (n <= 4) return False;
@@ -345,7 +313,7 @@ Int32 main ( Int32 argc, Char** argv )
    inFileName[0] = outFileName[0] = 0;
 
    fprintf ( stderr, 
-             "bzip2recover 1.0.3: extracts blocks from damaged .bz2 files.\n" );
+             "bzip2recover 1.0.5: extracts blocks from damaged .bz2 files.\n" );
 
    if (argc != 2) {
       fprintf ( stderr, "%s: usage is `%s damaged_file_name'.\n",
diff --git a/updater/bzip2-1.0.3/bzlib.c b/updater/bzip2-1.0.3/bzlib.c
index 1f6e9e4..ccc9afa 100644
--- a/updater/bzip2-1.0.3/bzlib.c
+++ b/updater/bzip2-1.0.3/bzlib.c
@@ -4,74 +4,29 @@
 /*---                                               bzlib.c ---*/
 /*-------------------------------------------------------------*/
 
-/*--
-  This file is a part of bzip2 and/or libbzip2, a program and
-  library for lossless, block-sorting data compression.
-
-  Copyright (C) 1996-2005 Julian R Seward.  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions
-  are met:
-
-  1. Redistributions of source code must retain the above copyright
-     notice, this list of conditions and the following disclaimer.
-
-  2. The origin of this software must not be misrepresented; you must 
-     not claim that you wrote the original software.  If you use this 
-     software in a product, an acknowledgment in the product 
-     documentation would be appreciated but is not required.
-
-  3. Altered source versions must be plainly marked as such, and must
-     not be misrepresented as being the original software.
-
-  4. The name of the author may not be used to endorse or promote 
-     products derived from this software without specific prior written 
-     permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-  Julian Seward, Cambridge, UK.
-  jseward@bzip.org
-  bzip2/libbzip2 version 1.0 of 21 March 2000
-
-  This program is based on (at least) the work of:
-     Mike Burrows
-     David Wheeler
-     Peter Fenwick
-     Alistair Moffat
-     Radford Neal
-     Ian H. Witten
-     Robert Sedgewick
-     Jon L. Bentley
-
-  For more information on these sources, see the manual.
---*/
+/* ------------------------------------------------------------------
+   This file is part of bzip2/libbzip2, a program and library for
+   lossless, block-sorting data compression.
 
-/*--
-   CHANGES
-   ~~~~~~~
-   0.9.0 -- original version.
+   bzip2/libbzip2 version 1.0.5 of 10 December 2007
+   Copyright (C) 1996-2007 Julian Seward 
 
-   0.9.0a/b -- no changes in this file.
+   Please read the WARNING, DISCLAIMER and PATENTS sections in the 
+   README file.
 
-   0.9.0c
-      * made zero-length BZ_FLUSH work correctly in bzCompress().
-      * fixed bzWrite/bzRead to ignore zero-length requests.
-      * fixed bzread to correctly handle read requests after EOF.
-      * wrong parameter order in call to bzDecompressInit in
-        bzBuffToBuffDecompress.  Fixed.
---*/
+   This program is released under the terms of the license contained
+   in the file LICENSE.
+   ------------------------------------------------------------------ */
+
+/* CHANGES
+   0.9.0    -- original version.
+   0.9.0a/b -- no changes in this file.
+   0.9.0c   -- made zero-length BZ_FLUSH work correctly in bzCompress().
+     fixed bzWrite/bzRead to ignore zero-length requests.
+     fixed bzread to correctly handle read requests after EOF.
+     wrong parameter order in call to bzDecompressInit in
+     bzBuffToBuffDecompress.  Fixed.
+*/
 
 #include "bzlib_private.h"
 
@@ -93,7 +48,7 @@ void BZ2_bz__AssertH__fail ( int errcode )
       "component, you should also report this bug to the author(s)\n"
       "of that program.  Please make an effort to report this bug;\n"
       "timely and accurate bug reports eventually lead to higher\n"
-      "quality software.  Thanks.  Julian Seward, 15 February 2005.\n\n",
+      "quality software.  Thanks.  Julian Seward, 10 December 2007.\n\n",
       errcode,
       BZ2_bzlibVersion()
    );
@@ -210,7 +165,7 @@ int BZ_API(BZ2_bzCompressInit)
    if (strm->bzalloc == NULL) strm->bzalloc = default_bzalloc;
    if (strm->bzfree == NULL) strm->bzfree = default_bzfree;
 
-   s = (EState *)BZALLOC( sizeof(EState) );
+   s = BZALLOC( sizeof(EState) );
    if (s == NULL) return BZ_MEM_ERROR;
    s->strm = strm;
 
@@ -219,9 +174,9 @@ int BZ_API(BZ2_bzCompressInit)
    s->ftab = NULL;
 
    n       = 100000 * blockSize100k;
-   s->arr1 = (UInt32 *)BZALLOC( n                  * sizeof(UInt32) );
-   s->arr2 = (UInt32 *)BZALLOC( (n+BZ_N_OVERSHOOT) * sizeof(UInt32) );
-   s->ftab = (UInt32 *)BZALLOC( 65537              * sizeof(UInt32) );
+   s->arr1 = BZALLOC( n                  * sizeof(UInt32) );
+   s->arr2 = BZALLOC( (n+BZ_N_OVERSHOOT) * sizeof(UInt32) );
+   s->ftab = BZALLOC( 65537              * sizeof(UInt32) );
 
    if (s->arr1 == NULL || s->arr2 == NULL || s->ftab == NULL) {
       if (s->arr1 != NULL) BZFREE(s->arr1);
@@ -407,7 +362,7 @@ Bool handle_compress ( bz_stream* strm )
 {
    Bool progress_in  = False;
    Bool progress_out = False;
-   EState* s = (EState *)strm->state;
+   EState* s = strm->state;
    
    while (True) {
 
@@ -454,7 +409,7 @@ int BZ_API(BZ2_bzCompress) ( bz_stream *strm, int action )
    Bool progress;
    EState* s;
    if (strm == NULL) return BZ_PARAM_ERROR;
-   s = (EState *)strm->state;
+   s = strm->state;
    if (s == NULL) return BZ_PARAM_ERROR;
    if (s->strm != strm) return BZ_PARAM_ERROR;
 
@@ -514,7 +469,7 @@ int BZ_API(BZ2_bzCompressEnd)  ( bz_stream *strm )
 {
    EState* s;
    if (strm == NULL) return BZ_PARAM_ERROR;
-   s = (EState *)strm->state;
+   s = strm->state;
    if (s == NULL) return BZ_PARAM_ERROR;
    if (s->strm != strm) return BZ_PARAM_ERROR;
 
@@ -550,7 +505,7 @@ int BZ_API(BZ2_bzDecompressInit)
    if (strm->bzalloc == NULL) strm->bzalloc = default_bzalloc;
    if (strm->bzfree == NULL) strm->bzfree = default_bzfree;
 
-   s = (DState *)BZALLOC( sizeof(DState) );
+   s = BZALLOC( sizeof(DState) );
    if (s == NULL) return BZ_MEM_ERROR;
    s->strm                  = strm;
    strm->state              = s;
@@ -643,6 +598,7 @@ Bool unRLE_obuf_to_output_FAST ( DState* s )
       UInt32        c_tPos               = s->tPos;
       char*         cs_next_out          = s->strm->next_out;
       unsigned int  cs_avail_out         = s->strm->avail_out;
+      Int32         ro_blockSize100k     = s->blockSize100k;
       /* end restore */
 
       UInt32       avail_out_INIT = cs_avail_out;
@@ -854,7 +810,7 @@ int BZ_API(BZ2_bzDecompress) ( bz_stream *strm )
    Bool    corrupt;
    DState* s;
    if (strm == NULL) return BZ_PARAM_ERROR;
-   s = (DState *)strm->state;
+   s = strm->state;
    if (s == NULL) return BZ_PARAM_ERROR;
    if (s->strm != strm) return BZ_PARAM_ERROR;
 
@@ -907,7 +863,7 @@ int BZ_API(BZ2_bzDecompressEnd)  ( bz_stream *strm )
 {
    DState* s;
    if (strm == NULL) return BZ_PARAM_ERROR;
-   s = (DState *)strm->state;
+   s = strm->state;
    if (s == NULL) return BZ_PARAM_ERROR;
    if (s->strm != strm) return BZ_PARAM_ERROR;
 
@@ -978,7 +934,7 @@ BZFILE* BZ_API(BZ2_bzWriteOpen)
    if (ferror(f))
       { BZ_SETERR(BZ_IO_ERROR); return NULL; };
 
-   bzf = (bzFile *)malloc ( sizeof(bzFile) );
+   bzf = malloc ( sizeof(bzFile) );
    if (bzf == NULL)
       { BZ_SETERR(BZ_MEM_ERROR); return NULL; };
 
@@ -1026,7 +982,7 @@ void BZ_API(BZ2_bzWrite)
       { BZ_SETERR(BZ_OK); return; };
 
    bzf->strm.avail_in = len;
-   bzf->strm.next_in  = (char *)buf;
+   bzf->strm.next_in  = buf;
 
    while (True) {
       bzf->strm.avail_out = BZ_MAX_UNUSED;
@@ -1151,7 +1107,7 @@ BZFILE* BZ_API(BZ2_bzReadOpen)
    if (ferror(f))
       { BZ_SETERR(BZ_IO_ERROR); return NULL; };
 
-   bzf = (bzFile *)malloc ( sizeof(bzFile) );
+   bzf = malloc ( sizeof(bzFile) );
    if (bzf == NULL) 
       { BZ_SETERR(BZ_MEM_ERROR); return NULL; };
 
@@ -1223,7 +1179,7 @@ int BZ_API(BZ2_bzRead)
       { BZ_SETERR(BZ_OK); return 0; };
 
    bzf->strm.avail_out = len;
-   bzf->strm.next_out = (char *)buf;
+   bzf->strm.next_out = buf;
 
    while (True) {
 
@@ -1394,8 +1350,7 @@ int BZ_API(BZ2_bzBuffToBuffDecompress)
 
 /*---------------------------------------------------*/
 /*--
-   Code contributed by Yoshioka Tsuneo
-   (QWF00133@niftyserve.or.jp/tsuneo-y@is.aist-nara.ac.jp),
+   Code contributed by Yoshioka Tsuneo (tsuneo@rr.iij4u.or.jp)
    to support better zlib compatibility.
    This code is not _officially_ part of libbzip2 (yet);
    I haven't tested it, documented it, or considered the
@@ -1406,7 +1361,7 @@ int BZ_API(BZ2_bzBuffToBuffDecompress)
 
 /*---------------------------------------------------*/
 /*--
-   return version like "0.9.0c".
+   return version like "0.9.5d, 4-Sept-1999".
 --*/
 const char * BZ_API(BZ2_bzlibVersion)(void)
 {
@@ -1420,7 +1375,7 @@ const char * BZ_API(BZ2_bzlibVersion)(void)
 #if defined(_WIN32) || defined(OS2) || defined(MSDOS)
 #   include 
 #   include 
-#   define SET_BINARY_MODE(file) setmode(fileno(file),O_BINARY)
+#   define SET_BINARY_MODE(file) _setmode(_fileno(file),O_BINARY)
 #else
 #   define SET_BINARY_MODE(file)
 #endif
@@ -1473,7 +1428,7 @@ BZFILE * bzopen_or_bzdopen
 #ifdef BZ_STRICT_ANSI
       fp = NULL;
 #else
-      fp = fdopen(fd,mode2);
+      fp = _fdopen(fd,mode2);
 #endif
    }
    if (fp == NULL) return NULL;
@@ -1559,9 +1514,10 @@ int BZ_API(BZ2_bzflush) (BZFILE *b)
 void BZ_API(BZ2_bzclose) (BZFILE* b)
 {
    int bzerr;
-   FILE *fp = ((bzFile *)b)->handle;
+   FILE *fp;
    
    if (b==NULL) {return;}
+   fp = ((bzFile *)b)->handle;
    if(((bzFile*)b)->writing){
       BZ2_bzWriteClose(&bzerr,b,0,NULL,NULL);
       if(bzerr != BZ_OK){
@@ -1580,7 +1536,7 @@ void BZ_API(BZ2_bzclose) (BZFILE* b)
 /*--
    return last error code 
 --*/
-static char *bzerrorstrings[] = {
+static const char *bzerrorstrings[] = {
        "OK"
       ,"SEQUENCE_ERROR"
       ,"PARAM_ERROR"
diff --git a/updater/bzip2-1.0.3/bzlib.h b/updater/bzip2-1.0.3/bzlib.h
index 3237243..c5b75d6 100644
--- a/updater/bzip2-1.0.3/bzlib.h
+++ b/updater/bzip2-1.0.3/bzlib.h
@@ -4,59 +4,19 @@
 /*---                                               bzlib.h ---*/
 /*-------------------------------------------------------------*/
 
-/*--
-  This file is a part of bzip2 and/or libbzip2, a program and
-  library for lossless, block-sorting data compression.
-
-  Copyright (C) 1996-2005 Julian R Seward.  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions
-  are met:
-
-  1. Redistributions of source code must retain the above copyright
-     notice, this list of conditions and the following disclaimer.
-
-  2. The origin of this software must not be misrepresented; you must 
-     not claim that you wrote the original software.  If you use this 
-     software in a product, an acknowledgment in the product 
-     documentation would be appreciated but is not required.
-
-  3. Altered source versions must be plainly marked as such, and must
-     not be misrepresented as being the original software.
-
-  4. The name of the author may not be used to endorse or promote 
-     products derived from this software without specific prior written 
-     permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-  Julian Seward, Cambridge, UK.
-  jseward@bzip.org
-  bzip2/libbzip2 version 1.0 of 21 March 2000
-
-  This program is based on (at least) the work of:
-     Mike Burrows
-     David Wheeler
-     Peter Fenwick
-     Alistair Moffat
-     Radford Neal
-     Ian H. Witten
-     Robert Sedgewick
-     Jon L. Bentley
-
-  For more information on these sources, see the manual.
---*/
+/* ------------------------------------------------------------------
+   This file is part of bzip2/libbzip2, a program and library for
+   lossless, block-sorting data compression.
+
+   bzip2/libbzip2 version 1.0.5 of 10 December 2007
+   Copyright (C) 1996-2007 Julian Seward 
+
+   Please read the WARNING, DISCLAIMER and PATENTS sections in the 
+   README file.
+
+   This program is released under the terms of the license contained
+   in the file LICENSE.
+   ------------------------------------------------------------------ */
 
 
 #ifndef _BZLIB_H
@@ -262,8 +222,7 @@ BZ_EXTERN int BZ_API(BZ2_bzBuffToBuffDecompress) (
 
 
 /*--
-   Code contributed by Yoshioka Tsuneo
-   (QWF00133@niftyserve.or.jp/tsuneo-y@is.aist-nara.ac.jp),
+   Code contributed by Yoshioka Tsuneo (tsuneo@rr.iij4u.or.jp)
    to support better zlib compatibility.
    This code is not _officially_ part of libbzip2 (yet);
    I haven't tested it, documented it, or considered the
diff --git a/updater/bzip2-1.0.3/bzlib_private.h b/updater/bzip2-1.0.3/bzlib_private.h
index 835c62c..2342787 100644
--- a/updater/bzip2-1.0.3/bzlib_private.h
+++ b/updater/bzip2-1.0.3/bzlib_private.h
@@ -4,59 +4,19 @@
 /*---                                       bzlib_private.h ---*/
 /*-------------------------------------------------------------*/
 
-/*--
-  This file is a part of bzip2 and/or libbzip2, a program and
-  library for lossless, block-sorting data compression.
-
-  Copyright (C) 1996-2005 Julian R Seward.  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions
-  are met:
-
-  1. Redistributions of source code must retain the above copyright
-     notice, this list of conditions and the following disclaimer.
-
-  2. The origin of this software must not be misrepresented; you must 
-     not claim that you wrote the original software.  If you use this 
-     software in a product, an acknowledgment in the product 
-     documentation would be appreciated but is not required.
-
-  3. Altered source versions must be plainly marked as such, and must
-     not be misrepresented as being the original software.
-
-  4. The name of the author may not be used to endorse or promote 
-     products derived from this software without specific prior written 
-     permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-  Julian Seward, Cambridge, UK.
-  jseward@bzip.org
-  bzip2/libbzip2 version 1.0 of 21 March 2000
-
-  This program is based on (at least) the work of:
-     Mike Burrows
-     David Wheeler
-     Peter Fenwick
-     Alistair Moffat
-     Radford Neal
-     Ian H. Witten
-     Robert Sedgewick
-     Jon L. Bentley
-
-  For more information on these sources, see the manual.
---*/
+/* ------------------------------------------------------------------
+   This file is part of bzip2/libbzip2, a program and library for
+   lossless, block-sorting data compression.
+
+   bzip2/libbzip2 version 1.0.5 of 10 December 2007
+   Copyright (C) 1996-2007 Julian Seward 
+
+   Please read the WARNING, DISCLAIMER and PATENTS sections in the 
+   README file.
+
+   This program is released under the terms of the license contained
+   in the file LICENSE.
+   ------------------------------------------------------------------ */
 
 
 #ifndef _BZLIB_PRIVATE_H
@@ -76,7 +36,7 @@
 
 /*-- General stuff. --*/
 
-#define BZ_VERSION  "1.0.3, 15-Feb-2005"
+#define BZ_VERSION  "1.0.5, 10-Dec-2007"
 
 typedef char            Char;
 typedef unsigned char   Bool;
@@ -89,14 +49,16 @@ typedef unsigned short  UInt16;
 #define True  ((Bool)1)
 #define False ((Bool)0)
 
-//#ifndef __GNUC__
+#ifndef __GNUC__
 #define __inline__  /* */
-//#endif 
+#endif 
 
 #ifndef BZ_NO_STDIO
+
 extern void BZ2_bz__AssertH__fail ( int errcode );
 #define AssertH(cond,errcode) \
    { if (!(cond)) BZ2_bz__AssertH__fail ( errcode ); }
+
 #if BZ_DEBUG
 #define AssertD(cond,msg) \
    { if (!(cond)) {       \
@@ -107,6 +69,7 @@ extern void BZ2_bz__AssertH__fail ( int errcode );
 #else
 #define AssertD(cond,msg) /* */
 #endif
+
 #define VPrintf0(zf) \
    fprintf(stderr,zf)
 #define VPrintf1(zf,za1) \
@@ -119,17 +82,20 @@ extern void BZ2_bz__AssertH__fail ( int errcode );
    fprintf(stderr,zf,za1,za2,za3,za4)
 #define VPrintf5(zf,za1,za2,za3,za4,za5) \
    fprintf(stderr,zf,za1,za2,za3,za4,za5)
+
 #else
+
 extern void bz_internal_error ( int errcode );
 #define AssertH(cond,errcode) \
    { if (!(cond)) bz_internal_error ( errcode ); }
-#define AssertD(cond,msg) /* */
-#define VPrintf0(zf) /* */
-#define VPrintf1(zf,za1) /* */
-#define VPrintf2(zf,za1,za2) /* */
-#define VPrintf3(zf,za1,za2,za3) /* */
-#define VPrintf4(zf,za1,za2,za3,za4) /* */
-#define VPrintf5(zf,za1,za2,za3,za4,za5) /* */
+#define AssertD(cond,msg)                do { } while (0)
+#define VPrintf0(zf)                     do { } while (0)
+#define VPrintf1(zf,za1)                 do { } while (0)
+#define VPrintf2(zf,za1,za2)             do { } while (0)
+#define VPrintf3(zf,za1,za2,za3)         do { } while (0)
+#define VPrintf4(zf,za1,za2,za3,za4)     do { } while (0)
+#define VPrintf5(zf,za1,za2,za3,za4,za5) do { } while (0)
+
 #endif
 
 
@@ -476,11 +442,15 @@ typedef
 /*-- Macros for decompression. --*/
 
 #define BZ_GET_FAST(cccc)                     \
+    /* c_tPos is unsigned, hence test < 0 is pointless. */ \
+    if (s->tPos >= (UInt32)100000 * (UInt32)s->blockSize100k) return True; \
     s->tPos = s->tt[s->tPos];                 \
     cccc = (UChar)(s->tPos & 0xff);           \
     s->tPos >>= 8;
 
 #define BZ_GET_FAST_C(cccc)                   \
+    /* c_tPos is unsigned, hence test < 0 is pointless. */ \
+    if (c_tPos >= (UInt32)100000 * (UInt32)ro_blockSize100k) return True; \
     c_tPos = c_tt[c_tPos];                    \
     cccc = (UChar)(c_tPos & 0xff);            \
     c_tPos >>= 8;
@@ -503,8 +473,10 @@ typedef
    (((UInt32)s->ll16[i]) | (GET_LL4(i) << 16))
 
 #define BZ_GET_SMALL(cccc)                            \
-      cccc = BZ2_indexIntoF ( s->tPos, s->cftab );    \
-      s->tPos = GET_LL(s->tPos);
+    /* c_tPos is unsigned, hence test < 0 is pointless. */ \
+    if (s->tPos >= (UInt32)100000 * (UInt32)s->blockSize100k) return True; \
+    cccc = BZ2_indexIntoF ( s->tPos, s->cftab );    \
+    s->tPos = GET_LL(s->tPos);
 
 
 /*-- externs for decompression. --*/
diff --git a/updater/bzip2-1.0.3/compress.c b/updater/bzip2-1.0.3/compress.c
index 7e0c291..8c80a07 100644
--- a/updater/bzip2-1.0.3/compress.c
+++ b/updater/bzip2-1.0.3/compress.c
@@ -4,71 +4,27 @@
 /*---                                            compress.c ---*/
 /*-------------------------------------------------------------*/
 
-/*--
-  This file is a part of bzip2 and/or libbzip2, a program and
-  library for lossless, block-sorting data compression.
-
-  Copyright (C) 1996-2005 Julian R Seward.  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions
-  are met:
-
-  1. Redistributions of source code must retain the above copyright
-     notice, this list of conditions and the following disclaimer.
-
-  2. The origin of this software must not be misrepresented; you must 
-     not claim that you wrote the original software.  If you use this 
-     software in a product, an acknowledgment in the product 
-     documentation would be appreciated but is not required.
-
-  3. Altered source versions must be plainly marked as such, and must
-     not be misrepresented as being the original software.
-
-  4. The name of the author may not be used to endorse or promote 
-     products derived from this software without specific prior written 
-     permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-  Julian Seward, Cambridge, UK.
-  jseward@bzip.org
-  bzip2/libbzip2 version 1.0 of 21 March 2000
-
-  This program is based on (at least) the work of:
-     Mike Burrows
-     David Wheeler
-     Peter Fenwick
-     Alistair Moffat
-     Radford Neal
-     Ian H. Witten
-     Robert Sedgewick
-     Jon L. Bentley
-
-  For more information on these sources, see the manual.
---*/
-
-/*--
-   CHANGES
-   ~~~~~~~
-   0.9.0 -- original version.
-
-   0.9.0a/b -- no changes in this file.
-
-   0.9.0c
-      * changed setting of nGroups in sendMTFValues() so as to 
-        do a bit better on small files
---*/
+/* ------------------------------------------------------------------
+   This file is part of bzip2/libbzip2, a program and library for
+   lossless, block-sorting data compression.
+
+   bzip2/libbzip2 version 1.0.5 of 10 December 2007
+   Copyright (C) 1996-2007 Julian Seward 
+
+   Please read the WARNING, DISCLAIMER and PATENTS sections in the 
+   README file.
+
+   This program is released under the terms of the license contained
+   in the file LICENSE.
+   ------------------------------------------------------------------ */
+
+
+/* CHANGES
+    0.9.0    -- original version.
+    0.9.0a/b -- no changes in this file.
+    0.9.0c   -- changed setting of nGroups in sendMTFValues() 
+                so as to do a bit better on small files
+*/
 
 #include "bzlib_private.h"
 
diff --git a/updater/bzip2-1.0.3/crctable.c b/updater/bzip2-1.0.3/crctable.c
index b6dadfc..215687b 100644
--- a/updater/bzip2-1.0.3/crctable.c
+++ b/updater/bzip2-1.0.3/crctable.c
@@ -4,59 +4,19 @@
 /*---                                            crctable.c ---*/
 /*-------------------------------------------------------------*/
 
-/*--
-  This file is a part of bzip2 and/or libbzip2, a program and
-  library for lossless, block-sorting data compression.
-
-  Copyright (C) 1996-2005 Julian R Seward.  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions
-  are met:
-
-  1. Redistributions of source code must retain the above copyright
-     notice, this list of conditions and the following disclaimer.
-
-  2. The origin of this software must not be misrepresented; you must 
-     not claim that you wrote the original software.  If you use this 
-     software in a product, an acknowledgment in the product 
-     documentation would be appreciated but is not required.
+/* ------------------------------------------------------------------
+   This file is part of bzip2/libbzip2, a program and library for
+   lossless, block-sorting data compression.
 
-  3. Altered source versions must be plainly marked as such, and must
-     not be misrepresented as being the original software.
+   bzip2/libbzip2 version 1.0.5 of 10 December 2007
+   Copyright (C) 1996-2007 Julian Seward 
 
-  4. The name of the author may not be used to endorse or promote 
-     products derived from this software without specific prior written 
-     permission.
+   Please read the WARNING, DISCLAIMER and PATENTS sections in the 
+   README file.
 
-  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-  Julian Seward, Cambridge, UK.
-  jseward@bzip.org
-  bzip2/libbzip2 version 1.0 of 21 March 2000
-
-  This program is based on (at least) the work of:
-     Mike Burrows
-     David Wheeler
-     Peter Fenwick
-     Alistair Moffat
-     Radford Neal
-     Ian H. Witten
-     Robert Sedgewick
-     Jon L. Bentley
-
-  For more information on these sources, see the manual.
---*/
+   This program is released under the terms of the license contained
+   in the file LICENSE.
+   ------------------------------------------------------------------ */
 
 
 #include "bzlib_private.h"
diff --git a/updater/bzip2-1.0.3/decompress.c b/updater/bzip2-1.0.3/decompress.c
index a1c39d6..bba5e0f 100644
--- a/updater/bzip2-1.0.3/decompress.c
+++ b/updater/bzip2-1.0.3/decompress.c
@@ -4,59 +4,19 @@
 /*---                                          decompress.c ---*/
 /*-------------------------------------------------------------*/
 
-/*--
-  This file is a part of bzip2 and/or libbzip2, a program and
-  library for lossless, block-sorting data compression.
-
-  Copyright (C) 1996-2005 Julian R Seward.  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions
-  are met:
-
-  1. Redistributions of source code must retain the above copyright
-     notice, this list of conditions and the following disclaimer.
-
-  2. The origin of this software must not be misrepresented; you must 
-     not claim that you wrote the original software.  If you use this 
-     software in a product, an acknowledgment in the product 
-     documentation would be appreciated but is not required.
-
-  3. Altered source versions must be plainly marked as such, and must
-     not be misrepresented as being the original software.
-
-  4. The name of the author may not be used to endorse or promote 
-     products derived from this software without specific prior written 
-     permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-  Julian Seward, Cambridge, UK.
-  jseward@bzip.org
-  bzip2/libbzip2 version 1.0 of 21 March 2000
-
-  This program is based on (at least) the work of:
-     Mike Burrows
-     David Wheeler
-     Peter Fenwick
-     Alistair Moffat
-     Radford Neal
-     Ian H. Witten
-     Robert Sedgewick
-     Jon L. Bentley
-
-  For more information on these sources, see the manual.
---*/
+/* ------------------------------------------------------------------
+   This file is part of bzip2/libbzip2, a program and library for
+   lossless, block-sorting data compression.
+
+   bzip2/libbzip2 version 1.0.5 of 10 December 2007
+   Copyright (C) 1996-2007 Julian Seward 
+
+   Please read the WARNING, DISCLAIMER and PATENTS sections in the 
+   README file.
+
+   This program is released under the terms of the license contained
+   in the file LICENSE.
+   ------------------------------------------------------------------ */
 
 
 #include "bzlib_private.h"
@@ -249,13 +209,13 @@ Int32 BZ2_decompress ( DState* s )
       s->blockSize100k -= BZ_HDR_0;
 
       if (s->smallDecompress) {
-         s->ll16 = (UInt16 *)BZALLOC( s->blockSize100k * 100000 * sizeof(UInt16) );
-         s->ll4  = (UChar *)BZALLOC( 
+         s->ll16 = BZALLOC( s->blockSize100k * 100000 * sizeof(UInt16) );
+         s->ll4  = BZALLOC( 
                       ((1 + s->blockSize100k * 100000) >> 1) * sizeof(UChar) 
                    );
          if (s->ll16 == NULL || s->ll4 == NULL) RETURN(BZ_MEM_ERROR);
       } else {
-         s->tt  = (UInt32 *)BZALLOC( s->blockSize100k * 100000 * sizeof(Int32) );
+         s->tt  = BZALLOC( s->blockSize100k * 100000 * sizeof(Int32) );
          if (s->tt == NULL) RETURN(BZ_MEM_ERROR);
       }
 
diff --git a/updater/bzip2-1.0.3/entities.xml b/updater/bzip2-1.0.3/entities.xml
index 6d0975f..e9e0553 100644
--- a/updater/bzip2-1.0.3/entities.xml
+++ b/updater/bzip2-1.0.3/entities.xml
@@ -1,9 +1,9 @@
 
 
 
-
+
 
-
-
+
+
 
 
diff --git a/updater/bzip2-1.0.3/format.pl b/updater/bzip2-1.0.3/format.pl
index 8ab47ac..1928d15 100644
--- a/updater/bzip2-1.0.3/format.pl
+++ b/updater/bzip2-1.0.3/format.pl
@@ -1,4 +1,19 @@
 #!/usr/bin/perl -w
+#
+# ------------------------------------------------------------------
+# This file is part of bzip2/libbzip2, a program and library for
+# lossless, block-sorting data compression.
+#
+# bzip2/libbzip2 version 1.0.5 of 10 December 2007
+# Copyright (C) 1996-2007 Julian Seward 
+#
+# Please read the WARNING, DISCLAIMER and PATENTS sections in the 
+# README file.
+#
+# This program is released under the terms of the license contained
+# in the file LICENSE.
+# ------------------------------------------------------------------
+#
 use strict;
 
 # get command line values:
diff --git a/updater/bzip2-1.0.3/huffman.c b/updater/bzip2-1.0.3/huffman.c
index 5bf190b..87e79e3 100644
--- a/updater/bzip2-1.0.3/huffman.c
+++ b/updater/bzip2-1.0.3/huffman.c
@@ -4,59 +4,19 @@
 /*---                                             huffman.c ---*/
 /*-------------------------------------------------------------*/
 
-/*--
-  This file is a part of bzip2 and/or libbzip2, a program and
-  library for lossless, block-sorting data compression.
-
-  Copyright (C) 1996-2005 Julian R Seward.  All rights reserved.
-
-  Redistribution and use in source and binary forms, with or without
-  modification, are permitted provided that the following conditions
-  are met:
-
-  1. Redistributions of source code must retain the above copyright
-     notice, this list of conditions and the following disclaimer.
-
-  2. The origin of this software must not be misrepresented; you must 
-     not claim that you wrote the original software.  If you use this 
-     software in a product, an acknowledgment in the product 
-     documentation would be appreciated but is not required.
-
-  3. Altered source versions must be plainly marked as such, and must
-     not be misrepresented as being the original software.
-
-  4. The name of the author may not be used to endorse or promote 
-     products derived from this software without specific prior written 
-     permission.
-
-  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
-  OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
-  ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
-  DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
-  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
-  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
-  INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
-  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-
-  Julian Seward, Cambridge, UK.
-  jseward@bzip.org
-  bzip2/libbzip2 version 1.0 of 21 March 2000
-
-  This program is based on (at least) the work of:
-     Mike Burrows
-     David Wheeler
-     Peter Fenwick
-     Alistair Moffat
-     Radford Neal
-     Ian H. Witten
-     Robert Sedgewick
-     Jon L. Bentley
-
-  For more information on these sources, see the manual.
---*/
+/* ------------------------------------------------------------------
+   This file is part of bzip2/libbzip2, a program and library for
+   lossless, block-sorting data compression.
+
+   bzip2/libbzip2 version 1.0.5 of 10 December 2007
+   Copyright (C) 1996-2007 Julian Seward 
+
+   Please read the WARNING, DISCLAIMER and PATENTS sections in the 
+   README file.
+
+   This program is released under the terms of the license contained
+   in the file LICENSE.
+   ------------------------------------------------------------------ */
 
 
 #include "bzlib_private.h"
diff --git a/updater/bzip2-1.0.3/manual.html b/updater/bzip2-1.0.3/manual.html
index b28cc79..bd9eac8 100644
--- a/updater/bzip2-1.0.3/manual.html
+++ b/updater/bzip2-1.0.3/manual.html
@@ -1,8 +1,8 @@
 
 
 
-bzip2 and libbzip2, version 1.0.3
-
+bzip2 and libbzip2, version 1.0.5
+