revert the change to rofsbuild image format, but add checking codes to prevent address overflow
<?xml version="1.0" encoding="gb2312"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="9.00"
Name="readimage"
ProjectGUID="{14ADB7DA-3076-4A77-868E-83E04E8D5A13}"
RootNamespace="readimage"
Keyword="Win32Proj"
TargetFrameworkVersion="196613"
>
<Platforms>
<Platform
Name="Win32"
/>
</Platforms>
<ToolFiles>
</ToolFiles>
<Configurations>
<Configuration
Name="Debug|Win32"
OutputDirectory="\VCOutput\Bins"
IntermediateDirectory="\VCOutput\Int\$(ProjectName)\$(ConfigurationName)"
ConfigurationType="1"
UseOfMFC="1"
UseOfATL="0"
CharacterSet="2"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="0"
AdditionalIncludeDirectories="../../imglib/boostlibrary;../../imglib/boostlibrary/boost;../rofsbuild;../rombuild;../readimage/inc;../rofsbuild/inc;../../imglib/inc;../../sisutils/inc;../../imglib/compress;../../imglib/memmap/include;../../imglib/patchdataprocessor/include;../../imglib/uniconv/include"
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;__MSVCDOTNET__;__TOOLS__;__VC32__;_STLP_DEBUG=1;__OPERATOR_NEW_DECLARED__;__SUPPORT_ELF_FILES__;snprintf=_snprintf;PATH_MAX=260"
MinimalRebuild="true"
BasicRuntimeChecks="3"
RuntimeLibrary="1"
TreatWChar_tAsBuiltInType="false"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="4"
DisableSpecificWarnings="4819;4996;4244;4334;4290"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
IgnoreImportLibrary="false"
OutputFile="$(OutDir)\$(ProjectName)D.exe"
LinkIncremental="2"
AdditionalLibraryDirectories="../../imglib/boostlibrary/binary/windows;../stlport_5-2-1_vc90_staticlib"
IgnoreDefaultLibraryNames=""
GenerateDebugInformation="true"
SubSystem="1"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
<Configuration
Name="Release|Win32"
OutputDirectory="\VCOutput\Bins"
IntermediateDirectory="\VCOutput\Int\$(ProjectName)\$(ConfigurationName)"
ConfigurationType="1"
UseOfMFC="1"
UseOfATL="0"
CharacterSet="2"
WholeProgramOptimization="1"
>
<Tool
Name="VCPreBuildEventTool"
/>
<Tool
Name="VCCustomBuildTool"
/>
<Tool
Name="VCXMLDataGeneratorTool"
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
/>
<Tool
Name="VCMIDLTool"
/>
<Tool
Name="VCCLCompilerTool"
Optimization="2"
EnableIntrinsicFunctions="true"
AdditionalIncludeDirectories="../../imglib/boostlibrary;../../imglib/boostlibrary/boost;../rofsbuild;../rombuild;../readimage/inc;../rofsbuild/inc;../../imglib/inc;../../sisutils/inc;../../imglib/compress;../../imglib/memmap/include;../../imglib/patchdataprocessor/include;../../imglib/uniconv/include"
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;__MSVCDOTNET__;__TOOLS__;__VC32__;__OPERATOR_NEW_DECLARED__;__SUPPORT_ELF_FILES__;snprintf=_snprintf;PATH_MAX=260"
RuntimeLibrary="0"
EnableFunctionLevelLinking="true"
TreatWChar_tAsBuiltInType="false"
UsePrecompiledHeader="0"
WarningLevel="3"
DebugInformationFormat="3"
DisableSpecificWarnings="4819;4996;4244;4334;4290"
/>
<Tool
Name="VCManagedResourceCompilerTool"
/>
<Tool
Name="VCResourceCompilerTool"
/>
<Tool
Name="VCPreLinkEventTool"
/>
<Tool
Name="VCLinkerTool"
LinkIncremental="1"
AdditionalLibraryDirectories="../../imglib/boostlibrary/binary/windows;../stlport_5-2-1_vc90_staticlib"
GenerateDebugInformation="true"
SubSystem="1"
OptimizeReferences="2"
EnableCOMDATFolding="2"
TargetMachine="1"
/>
<Tool
Name="VCALinkTool"
/>
<Tool
Name="VCManifestTool"
/>
<Tool
Name="VCXDCMakeTool"
/>
<Tool
Name="VCBscMakeTool"
/>
<Tool
Name="VCFxCopTool"
/>
<Tool
Name="VCAppVerifierTool"
/>
<Tool
Name="VCPostBuildEventTool"
/>
</Configuration>
</Configurations>
<References>
</References>
<Files>
<Filter
Name="Sources"
Filter="cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx"
UniqueIdentifier="{4FC737F1-C7A5-4376-A066-2A32D752A2FF}"
>
<File
RelativePath="..\readimage\src\common.cpp"
>
</File>
<File
RelativePath="..\readimage\src\e32_image_reader.cpp"
>
</File>
<File
RelativePath="..\readimage\src\image_handler.cpp"
>
</File>
<File
RelativePath="..\readimage\src\image_reader.cpp"
>
</File>
<File
RelativePath="..\readimage\src\rofs_image_reader.cpp"
>
</File>
<File
RelativePath="..\readimage\src\rom_image_reader.cpp"
>
</File>
<Filter
Name="e32image"
>
<File
RelativePath="..\..\imglib\e32image\deflate\compress.cpp"
>
</File>
<File
RelativePath="..\..\imglib\e32image\deflate\decode.cpp"
>
</File>
<File
RelativePath="..\..\imglib\e32image\deflate\deflate.cpp"
>
</File>
<File
RelativePath="..\..\imglib\e32image\e32image.cpp"
>
</File>
<File
RelativePath="..\..\imglib\e32image\deflate\encode.cpp"
>
</File>
<File
RelativePath="..\..\imglib\e32image\deflate\inflate.cpp"
>
</File>
<File
RelativePath="..\..\imglib\e32image\deflate\panic.cpp"
>
</File>
</Filter>
<Filter
Name="compress"
>
<File
RelativePath="..\..\imglib\compress\byte_pair.cpp"
>
</File>
<File
RelativePath="..\..\imglib\compress\pagedcompress.cpp"
>
</File>
</Filter>
<Filter
Name="e32uid"
>
<File
RelativePath="..\..\imglib\e32uid\e32uid.cpp"
>
</File>
</Filter>
<Filter
Name="imglib_host"
>
<File
RelativePath="..\..\imglib\host\h_file.cpp"
>
</File>
<File
RelativePath="..\..\imglib\host\h_mem.cpp"
>
</File>
<File
RelativePath="..\..\imglib\host\h_utl.cpp"
>
</File>
<File
RelativePath="..\..\imglib\host\utf16string.cpp"
>
</File>
</Filter>
<Filter
Name="rofsbuild_cache"
>
<File
RelativePath="..\rofsbuild\src\cache\cache.cpp"
>
</File>
<File
RelativePath="..\rofsbuild\src\cache\cacheablelist.cpp"
>
</File>
<File
RelativePath="..\rofsbuild\src\cache\cacheentry.cpp"
>
</File>
<File
RelativePath="..\rofsbuild\src\cache\cacheexception.cpp"
>
</File>
<File
RelativePath="..\rofsbuild\src\cache\cachegenerator.cpp"
>
</File>
<File
RelativePath="..\rofsbuild\src\cache\cachemanager.cpp"
>
</File>
<File
RelativePath="..\rofsbuild\src\cache\cachevalidator.cpp"
>
</File>
</Filter>
<Filter
Name="memmap"
>
<File
RelativePath="..\..\imglib\memmap\source\memmap.cpp"
>
</File>
<File
RelativePath="..\..\imglib\memmap\source\memmaputils.cpp"
>
</File>
</Filter>
<Filter
Name="patchdataprocessor"
>
<File
RelativePath="..\..\imglib\patchdataprocessor\source\patchdataprocessor.cpp"
>
</File>
</Filter>
<Filter
Name="sisutils"
>
<File
RelativePath="..\..\sisutils\src\pkgfileparser.cpp"
>
</File>
<File
RelativePath="..\..\sisutils\src\pkglanguage.cpp"
>
</File>
<File
RelativePath="..\..\sisutils\src\sis2iby.cpp"
>
</File>
<File
RelativePath="..\..\sisutils\src\sisutils.cpp"
>
</File>
</Filter>
<Filter
Name="rombuild"
>
<File
RelativePath="..\rombuild\r_global.cpp"
>
</File>
</Filter>
<Filter
Name="rofsbuild"
>
<File
RelativePath="..\rofsbuild\r_build.cpp"
>
</File>
<File
RelativePath="..\rofsbuild\r_coreimage.cpp"
>
</File>
</Filter>
<Filter
Name="uniconv"
>
</Filter>
</Filter>
<Filter
Name="Headers"
Filter="h;hpp;hxx;hm;inl;inc;xsd"
UniqueIdentifier="{93995380-89BD-4b04-88EB-625FBE52EBFB}"
>
<File
RelativePath="..\readimage\inc\common.h"
>
</File>
<File
RelativePath="..\readimage\inc\e32_image_reader.h"
>
</File>
<File
RelativePath="..\readimage\inc\image_handler.h"
>
</File>
<File
RelativePath="..\readimage\inc\image_reader.h"
>
</File>
<File
RelativePath="..\readimage\inc\rofs_image_reader.h"
>
</File>
<File
RelativePath="..\readimage\inc\rom_image_reader.h"
>
</File>
<Filter
Name="compress"
>
<File
RelativePath="..\..\imglib\compress\byte_pair.h"
>
</File>
</Filter>
<Filter
Name="e32image"
>
<File
RelativePath="..\..\imglib\e32image\deflate\deflate.h"
>
</File>
<File
RelativePath="..\..\imglib\e32image\deflate\farray.h"
>
</File>
<File
RelativePath="..\..\imglib\e32image\deflate\huffman.h"
>
</File>
<File
RelativePath="..\..\imglib\e32image\deflate\panic.h"
>
</File>
</Filter>
<Filter
Name="imglib_inc"
>
<File
RelativePath="..\..\imglib\inc\e32image.h"
>
</File>
<File
RelativePath="..\..\imglib\inc\fatdefines.h"
>
</File>
<File
RelativePath="..\..\imglib\inc\h_utl.h"
>
</File>
<File
RelativePath="..\..\imglib\inc\utf16string.h"
>
</File>
</Filter>
<Filter
Name="cache"
>
<File
RelativePath="..\readimage\inc\cache\cache.hpp"
>
</File>
<File
RelativePath="..\readimage\inc\cache\cacheablelist.hpp"
>
</File>
<File
RelativePath="..\readimage\inc\cache\cacheentry.hpp"
>
</File>
<File
RelativePath="..\readimage\inc\cache\cacheexception.hpp"
>
</File>
<File
RelativePath="..\readimage\inc\cache\cachegenerator.hpp"
>
</File>
<File
RelativePath="..\readimage\inc\cache\cachemanager.hpp"
>
</File>
<File
RelativePath="..\readimage\inc\cache\cachevalidator.hpp"
>
</File>
</Filter>
<Filter
Name="memmap"
>
<File
RelativePath="..\..\imglib\memmap\include\memmap.h"
>
</File>
<File
RelativePath="..\..\imglib\memmap\include\memmaputils.h"
>
</File>
</Filter>
<Filter
Name="patchdataprocessor"
>
<File
RelativePath="..\..\imglib\patchdataprocessor\include\patchdataprocessor.h"
>
</File>
</Filter>
<Filter
Name="sisutils"
>
<File
RelativePath="..\..\sisutils\inc\pkgfileparser.h"
>
</File>
<File
RelativePath="..\..\sisutils\inc\pkglanguage.h"
>
</File>
<File
RelativePath="..\..\sisutils\inc\sis2iby.h"
>
</File>
<File
RelativePath="..\..\sisutils\inc\sisutils.h"
>
</File>
</Filter>
<Filter
Name="uniconv"
>
<File
RelativePath="..\..\imglib\uniconv\source\uniconv.cpp"
>
</File>
</Filter>
</Filter>
</Files>
<Globals>
</Globals>
</VisualStudioProject>