From: Gang W. <gan...@in...> - 2018-11-30 07:12:25
|
changeset 9461f9495f90 in /hg/p/tboot/code details: http://hg.code.sf.net/p/tboot/code/code?cmd=changeset;node=9461f9495f90 description: Add safestringlib code to support replacement of banned mem/str fns Since safestringlib (https://github.com/intel/safestringlib) is not available in any Linux distro yet, include its code tree to avoid dependency issue while packaging tboot for distroes. The safestringlib version included is 1.0.0. Signed-off-by: Gang Wei <gan...@in...> diffstat: safestringlib/.cproject | 115 ++ safestringlib/.project | 82 ++ safestringlib/Debug/makefile | 44 + safestringlib/Debug/objects.mk | 8 + safestringlib/Debug/sources.mk | 17 + safestringlib/LICENSE©ING.txt | 50 + safestringlib/README.md | 86 ++ safestringlib/include/safe_lib.h | 61 + safestringlib/include/safe_lib_errno.h | 100 ++ safestringlib/include/safe_lib_errno.h.in | 91 ++ safestringlib/include/safe_mem_lib.h | 115 ++ safestringlib/include/safe_str_lib.h | 263 ++++++ safestringlib/include/safe_types.h | 59 + safestringlib/include/safe_types.h.in | 59 + safestringlib/include/snprintf_s.h | 48 + safestringlib/makefile | 56 + safestringlib/safeclib/abort_handler_s.c | 74 + safestringlib/safeclib/ignore_handler_s.c | 72 + safestringlib/safeclib/mem_primitives_lib.c | 853 +++++++++++++++++++++ safestringlib/safeclib/mem_primitives_lib.h | 74 + safestringlib/safeclib/memcmp16_s.c | 173 ++++ safestringlib/safeclib/memcmp32_s.c | 167 ++++ safestringlib/safeclib/memcmp_s.c | 174 ++++ safestringlib/safeclib/memcpy16_s.c | 151 +++ safestringlib/safeclib/memcpy32_s.c | 150 +++ safestringlib/safeclib/memcpy_s.c | 157 +++ safestringlib/safeclib/memmove16_s.c | 151 +++ safestringlib/safeclib/memmove32_s.c | 150 +++ safestringlib/safeclib/memmove_s.c | 149 +++ safestringlib/safeclib/memset16_s.c | 105 ++ safestringlib/safeclib/memset32_s.c | 105 ++ safestringlib/safeclib/memset_s.c | 105 ++ safestringlib/safeclib/memzero16_s.c | 107 ++ safestringlib/safeclib/memzero32_s.c | 108 ++ safestringlib/safeclib/memzero_s.c | 107 ++ safestringlib/safeclib/safe_mem_constraint.c | 142 +++ safestringlib/safeclib/safe_mem_constraint.h | 46 + safestringlib/safeclib/safe_str_constraint.c | 146 +++ safestringlib/safeclib/safe_str_constraint.h | 78 + safestringlib/safeclib/safeclib_private.h | 93 ++ safestringlib/safeclib/snprintf_support.c | 329 ++++++++ safestringlib/safeclib/stpcpy_s.c | 234 +++++ safestringlib/safeclib/stpncpy_s.c | 282 ++++++ safestringlib/safeclib/strcasecmp_s.c | 144 +++ safestringlib/safeclib/strcasestr_s.c | 179 ++++ safestringlib/safeclib/strcat_s.c | 232 +++++ safestringlib/safeclib/strcmp_s.c | 140 +++ safestringlib/safeclib/strcmpfld_s.c | 142 +++ safestringlib/safeclib/strcpy_s.c | 198 ++++ safestringlib/safeclib/strcpyfld_s.c | 199 ++++ safestringlib/safeclib/strcpyfldin_s.c | 202 ++++ safestringlib/safeclib/strcpyfldout_s.c | 204 +++++ safestringlib/safeclib/strcspn_s.c | 165 ++++ safestringlib/safeclib/strfirstchar_s.c | 127 +++ safestringlib/safeclib/strfirstdiff_s.c | 142 +++ safestringlib/safeclib/strfirstsame_s.c | 145 +++ safestringlib/safeclib/strisalphanumeric_s.c | 119 ++ safestringlib/safeclib/strisascii_s.c | 110 ++ safestringlib/safeclib/strisdigit_s.c | 112 ++ safestringlib/safeclib/strishex_s.c | 118 ++ safestringlib/safeclib/strislowercase_s.c | 118 ++ safestringlib/safeclib/strismixedcase_s.c | 119 ++ safestringlib/safeclib/strispassword_s.c | 168 ++++ safestringlib/safeclib/strisuppercase_s.c | 117 ++ safestringlib/safeclib/strlastchar_s.c | 131 +++ safestringlib/safeclib/strlastdiff_s.c | 151 +++ safestringlib/safeclib/strlastsame_s.c | 152 +++ safestringlib/safeclib/strljustify_s.c | 159 +++ safestringlib/safeclib/strncat_s.c | 265 ++++++ safestringlib/safeclib/strncpy_s.c | 238 +++++ safestringlib/safeclib/strnlen_s.c | 112 ++ safestringlib/safeclib/strnterminate_s.c | 112 ++ safestringlib/safeclib/strpbrk_s.c | 163 ++++ safestringlib/safeclib/strprefix_s.c | 127 +++ safestringlib/safeclib/strremovews_s.c | 163 ++++ safestringlib/safeclib/strspn_s.c | 170 ++++ safestringlib/safeclib/strstr_s.c | 179 ++++ safestringlib/safeclib/strtok_s.c | 323 +++++++ safestringlib/safeclib/strtolowercase_s.c | 114 ++ safestringlib/safeclib/strtouppercase_s.c | 114 ++ safestringlib/safeclib/strzero_s.c | 102 ++ safestringlib/safeclib/wcpcpy_s.c | 219 +++++ safestringlib/safeclib/wcscat_s.c | 226 +++++ safestringlib/safeclib/wcscpy_s.c | 207 +++++ safestringlib/safeclib/wcsncat_s.c | 269 ++++++ safestringlib/safeclib/wcsncpy_s.c | 241 +++++ safestringlib/safeclib/wcsnlen_s.c | 113 ++ safestringlib/safeclib/wmemcmp_s.c | 169 ++++ safestringlib/safeclib/wmemcpy_s.c | 158 +++ safestringlib/safeclib/wmemmove_s.c | 150 +++ safestringlib/safeclib/wmemset_s.c | 105 ++ safestringlib/unittests/Safe_String_UnitTestMain.c | 192 ++++ safestringlib/unittests/test_memcmp16_s.c | 176 ++++ safestringlib/unittests/test_memcmp32_s.c | 169 ++++ safestringlib/unittests/test_memcmp_s.c | 211 +++++ safestringlib/unittests/test_memcpy16_s.c | 241 +++++ safestringlib/unittests/test_memcpy32_s.c | 240 +++++ safestringlib/unittests/test_memcpy_s.c | 309 +++++++ safestringlib/unittests/test_memmove16_s.c | 214 +++++ safestringlib/unittests/test_memmove32_s.c | 214 +++++ safestringlib/unittests/test_memmove_s.c | 213 +++++ safestringlib/unittests/test_memset16_s.c | 147 +++ safestringlib/unittests/test_memset32_s.c | 150 +++ safestringlib/unittests/test_memset_s.c | 148 +++ safestringlib/unittests/test_memzero16_s.c | 126 +++ safestringlib/unittests/test_memzero32_s.c | 126 +++ safestringlib/unittests/test_memzero_s.c | 126 +++ safestringlib/unittests/test_private.h | 61 + safestringlib/unittests/test_stpcpy_s.c | 476 +++++++++++ safestringlib/unittests/test_stpncpy_s.c | 610 +++++++++++++++ safestringlib/unittests/test_strcasecmp_s.c | 242 +++++ safestringlib/unittests/test_strcasestr_s.c | 434 ++++++++++ safestringlib/unittests/test_strcat_s.c | 307 +++++++ safestringlib/unittests/test_strcmp_s.c | 240 +++++ safestringlib/unittests/test_strcmpfld_s.c | 240 +++++ safestringlib/unittests/test_strcpy_s.c | 261 ++++++ safestringlib/unittests/test_strcpyfld_s.c | 209 +++++ safestringlib/unittests/test_strcpyfldin_s.c | 246 ++++++ safestringlib/unittests/test_strcpyfldout_s.c | 250 ++++++ safestringlib/unittests/test_strcspn_s.c | 310 +++++++ safestringlib/unittests/test_strfirstchar_s.c | 148 +++ safestringlib/unittests/test_strfirstdiff_s.c | 229 +++++ safestringlib/unittests/test_strfirstsame_s.c | 246 ++++++ safestringlib/unittests/test_strisalphanumeric_s.c | 140 +++ safestringlib/unittests/test_strisascii_s.c | 126 +++ safestringlib/unittests/test_strisdigit_s.c | 114 ++ safestringlib/unittests/test_strishex_s.c | 135 +++ safestringlib/unittests/test_strislowercase_s.c | 103 ++ safestringlib/unittests/test_strismixed_s.c | 114 ++ safestringlib/unittests/test_strispassword_s.c | 129 +++ safestringlib/unittests/test_strisuppercase_s.c | 114 ++ safestringlib/unittests/test_strlastchar_s.c | 163 ++++ safestringlib/unittests/test_strlastdiff_s.c | 198 ++++ safestringlib/unittests/test_strlastsame_s.c | 246 ++++++ safestringlib/unittests/test_strljustify_s.c | 248 ++++++ safestringlib/unittests/test_strncat_s.c | 217 +++++ safestringlib/unittests/test_strncpy_s.c | 328 ++++++++ safestringlib/unittests/test_strnlen_s.c | 129 +++ safestringlib/unittests/test_strnterminate_s.c | 182 ++++ safestringlib/unittests/test_strpbrk_s.c | 281 ++++++ safestringlib/unittests/test_strprefix_s.c | 160 +++ safestringlib/unittests/test_strremovews_s.c | 233 +++++ safestringlib/unittests/test_strspn_s.c | 281 ++++++ safestringlib/unittests/test_strstr_s.c | 321 +++++++ safestringlib/unittests/test_strtok_s.c | 328 ++++++++ safestringlib/unittests/test_strtolowercase_s.c | 141 +++ safestringlib/unittests/test_strtouppercase_s.c | 150 +++ safestringlib/unittests/test_strzero_s.c | 131 +++ safestringlib/unittests/test_wcpcpy_s.c | 516 ++++++++++++ safestringlib/unittests/test_wcscat_s.c | 416 ++++++++++ safestringlib/unittests/test_wcscpy_s.c | 436 ++++++++++ safestringlib/unittests/test_wcsncat_s.c | 485 +++++++++++ safestringlib/unittests/test_wcsncpy_s.c | 504 ++++++++++++ safestringlib/unittests/test_wcsnlen_s.c | 156 +++ safestringlib/unittests/test_wmemcmp_s.c | 355 ++++++++ safestringlib/unittests/test_wmemcpy_s.c | 417 ++++++++++ safestringlib/unittests/test_wmemmove_s.c | 456 +++++++++++ safestringlib/unittests/test_wmemset_s.c | 240 +++++ 158 files changed, 29772 insertions(+), 0 deletions(-) diffs (truncated from 30404 to 300 lines): diff -r 27f351c3d238 -r 9461f9495f90 safestringlib/.cproject --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/safestringlib/.cproject Fri Nov 30 09:48:16 2018 +0800 @@ -0,0 +1,115 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<?fileVersion 4.0.0?><cproject storage_type_id="org.eclipse.cdt.core.XmlProjectDescriptionStorage"> + <storageModule moduleId="org.eclipse.cdt.core.settings"> + <cconfiguration id="cdt.managedbuild.config.gnu.lib.debug.1564370166"> + <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.lib.debug.1564370166" moduleId="org.eclipse.cdt.core.settings" name="Debug"> + <externalSettings> + <externalSetting> + <entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/SafeStringStaticLibrary"/> + <entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/SafeStringStaticLibrary/Debug"/> + <entry flags="RESOLVED" kind="libraryFile" name="SafeString"/> + </externalSetting> + </externalSettings> + <extensions> + <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> + <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> + <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> + <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> + <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/> + </extensions> + </storageModule> + <storageModule moduleId="cdtBuildSystem" version="4.0.0"> + <configuration artifactExtension="a" artifactName="SafeString" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.staticLib" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.debug,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.staticLib" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.lib.debug.1564370166" name="Debug" parent="cdt.managedbuild.config.gnu.lib.debug"> + <folderInfo id="cdt.managedbuild.config.gnu.lib.debug.1564370166." name="/" resourcePath=""> + <toolChain id="cdt.managedbuild.toolchain.gnu.lib.debug.754794323" name="Linux GCC" superClass="cdt.managedbuild.toolchain.gnu.lib.debug"> + <targetPlatform id="cdt.managedbuild.target.gnu.platform.lib.debug.1170798153" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.lib.debug"/> + <builder buildPath="${workspace_loc:/SafeStringStaticLibrary/Debug}" id="cdt.managedbuild.target.gnu.builder.lib.debug.1212314290" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.lib.debug"/> + <tool command="ar" commandLinePattern="${COMMAND} ${FLAGS} ${OUTPUT_FLAG} ${OUTPUT_PREFIX}${OUTPUT} ${INPUTS}" id="cdt.managedbuild.tool.gnu.archiver.lib.debug.348860128" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.lib.debug"/> + <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.lib.debug.1489682381" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.lib.debug"> + <option id="gnu.cpp.compiler.lib.debug.option.optimization.level.1684011745" name="Optimization Level" superClass="gnu.cpp.compiler.lib.debug.option.optimization.level" value="gnu.cpp.compiler.optimization.level.none" valueType="enumerated"/> + <option id="gnu.cpp.compiler.lib.debug.option.debugging.level.1113696392" name="Debug Level" superClass="gnu.cpp.compiler.lib.debug.option.debugging.level" value="gnu.cpp.compiler.debugging.level.max" valueType="enumerated"/> + </tool> + <tool id="cdt.managedbuild.tool.gnu.c.compiler.lib.debug.1801394112" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.lib.debug"> + <option defaultValue="gnu.c.optimization.level.none" id="gnu.c.compiler.lib.debug.option.optimization.level.1635409405" name="Optimization Level" superClass="gnu.c.compiler.lib.debug.option.optimization.level" value="gnu.c.optimization.level.most" valueType="enumerated"/> + <option id="gnu.c.compiler.lib.debug.option.debugging.level.842527005" name="Debug Level" superClass="gnu.c.compiler.lib.debug.option.debugging.level" value="gnu.c.debugging.level.max" valueType="enumerated"/> + <option id="gnu.c.compiler.option.include.paths.1048184051" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath"> + <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/include}""/> + </option> + <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.829035136" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/> + </tool> + <tool id="cdt.managedbuild.tool.gnu.c.linker.base.1022734456" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.base"/> + <tool id="cdt.managedbuild.tool.gnu.cpp.linker.base.1477373017" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.base"/> + <tool id="cdt.managedbuild.tool.gnu.assembler.lib.debug.520429579" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.lib.debug"> + <inputType id="cdt.managedbuild.tool.gnu.assembler.input.1044908193" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> + </tool> + </toolChain> + </folderInfo> + </configuration> + </storageModule> + <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> + </cconfiguration> + <cconfiguration id="cdt.managedbuild.config.gnu.lib.release.1933613108"> + <storageModule buildSystemId="org.eclipse.cdt.managedbuilder.core.configurationDataProvider" id="cdt.managedbuild.config.gnu.lib.release.1933613108" moduleId="org.eclipse.cdt.core.settings" name="Release"> + <externalSettings> + <externalSetting> + <entry flags="VALUE_WORKSPACE_PATH" kind="includePath" name="/SafeStringStaticLibrary"/> + <entry flags="VALUE_WORKSPACE_PATH" kind="libraryPath" name="/SafeStringStaticLibrary/Release"/> + <entry flags="RESOLVED" kind="libraryFile" name="SafeString"/> + </externalSetting> + </externalSettings> + <extensions> + <extension id="org.eclipse.cdt.core.GmakeErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> + <extension id="org.eclipse.cdt.core.CWDLocator" point="org.eclipse.cdt.core.ErrorParser"/> + <extension id="org.eclipse.cdt.core.GCCErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> + <extension id="org.eclipse.cdt.core.GASErrorParser" point="org.eclipse.cdt.core.ErrorParser"/> + <extension id="org.eclipse.cdt.core.ELF" point="org.eclipse.cdt.core.BinaryParser"/> + </extensions> + </storageModule> + <storageModule moduleId="cdtBuildSystem" version="4.0.0"> + <configuration artifactExtension="a" artifactName="SafeString" buildArtefactType="org.eclipse.cdt.build.core.buildArtefactType.staticLib" buildProperties="org.eclipse.cdt.build.core.buildType=org.eclipse.cdt.build.core.buildType.release,org.eclipse.cdt.build.core.buildArtefactType=org.eclipse.cdt.build.core.buildArtefactType.staticLib" cleanCommand="rm -rf" description="" id="cdt.managedbuild.config.gnu.lib.release.1933613108" name="Release" parent="cdt.managedbuild.config.gnu.lib.release"> + <folderInfo id="cdt.managedbuild.config.gnu.lib.release.1933613108." name="/" resourcePath=""> + <toolChain id="cdt.managedbuild.toolchain.gnu.lib.release.1996280599" name="Linux GCC" superClass="cdt.managedbuild.toolchain.gnu.lib.release"> + <targetPlatform id="cdt.managedbuild.target.gnu.platform.lib.release.1152634262" name="Debug Platform" superClass="cdt.managedbuild.target.gnu.platform.lib.release"/> + <builder buildPath="${workspace_loc:/SafeStringStaticLibrary/Release}" id="cdt.managedbuild.target.gnu.builder.lib.release.1352563350" keepEnvironmentInBuildfile="false" managedBuildOn="true" name="Gnu Make Builder" superClass="cdt.managedbuild.target.gnu.builder.lib.release"/> + <tool id="cdt.managedbuild.tool.gnu.archiver.lib.release.2098190171" name="GCC Archiver" superClass="cdt.managedbuild.tool.gnu.archiver.lib.release"/> + <tool id="cdt.managedbuild.tool.gnu.cpp.compiler.lib.release.1806180358" name="GCC C++ Compiler" superClass="cdt.managedbuild.tool.gnu.cpp.compiler.lib.release"> + <option id="gnu.cpp.compiler.lib.release.option.optimization.level.272670217" name="Optimization Level" superClass="gnu.cpp.compiler.lib.release.option.optimization.level" value="gnu.cpp.compiler.optimization.level.most" valueType="enumerated"/> + <option id="gnu.cpp.compiler.lib.release.option.debugging.level.1284011444" name="Debug Level" superClass="gnu.cpp.compiler.lib.release.option.debugging.level" value="gnu.cpp.compiler.debugging.level.none" valueType="enumerated"/> + </tool> + <tool id="cdt.managedbuild.tool.gnu.c.compiler.lib.release.1980630517" name="GCC C Compiler" superClass="cdt.managedbuild.tool.gnu.c.compiler.lib.release"> + <option defaultValue="gnu.c.optimization.level.most" id="gnu.c.compiler.lib.release.option.optimization.level.27420741" name="Optimization Level" superClass="gnu.c.compiler.lib.release.option.optimization.level" valueType="enumerated"/> + <option id="gnu.c.compiler.lib.release.option.debugging.level.1550168236" name="Debug Level" superClass="gnu.c.compiler.lib.release.option.debugging.level" value="gnu.c.debugging.level.none" valueType="enumerated"/> + <option id="gnu.c.compiler.option.include.paths.632523745" name="Include paths (-I)" superClass="gnu.c.compiler.option.include.paths" valueType="includePath"> + <listOptionValue builtIn="false" value=""${workspace_loc:/${ProjName}/include}""/> + </option> + <inputType id="cdt.managedbuild.tool.gnu.c.compiler.input.1135221498" superClass="cdt.managedbuild.tool.gnu.c.compiler.input"/> + </tool> + <tool id="cdt.managedbuild.tool.gnu.c.linker.base.1620407425" name="GCC C Linker" superClass="cdt.managedbuild.tool.gnu.c.linker.base"/> + <tool id="cdt.managedbuild.tool.gnu.cpp.linker.base.619294370" name="GCC C++ Linker" superClass="cdt.managedbuild.tool.gnu.cpp.linker.base"/> + <tool id="cdt.managedbuild.tool.gnu.assembler.lib.release.91765342" name="GCC Assembler" superClass="cdt.managedbuild.tool.gnu.assembler.lib.release"> + <inputType id="cdt.managedbuild.tool.gnu.assembler.input.2001835706" superClass="cdt.managedbuild.tool.gnu.assembler.input"/> + </tool> + </toolChain> + </folderInfo> + </configuration> + </storageModule> + <storageModule moduleId="org.eclipse.cdt.core.externalSettings"/> + </cconfiguration> + </storageModule> + <storageModule moduleId="cdtBuildSystem" version="4.0.0"> + <project id="SafeStringStaticLibrary.cdt.managedbuild.target.gnu.lib.1519431796" name="Static Library" projectType="cdt.managedbuild.target.gnu.lib"/> + </storageModule> + <storageModule moduleId="scannerConfiguration"> + <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId=""/> + <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.lib.release.1933613108;cdt.managedbuild.config.gnu.lib.release.1933613108.;cdt.managedbuild.tool.gnu.c.compiler.lib.release.1980630517;cdt.managedbuild.tool.gnu.c.compiler.input.1135221498"> + <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/> + </scannerConfigBuildInfo> + <scannerConfigBuildInfo instanceId="cdt.managedbuild.config.gnu.lib.debug.1564370166;cdt.managedbuild.config.gnu.lib.debug.1564370166.;cdt.managedbuild.tool.gnu.c.compiler.lib.debug.1801394112;cdt.managedbuild.tool.gnu.c.compiler.input.829035136"> + <autodiscovery enabled="true" problemReportingEnabled="true" selectedProfileId="org.eclipse.cdt.managedbuilder.core.GCCManagedMakePerProjectProfileC"/> + </scannerConfigBuildInfo> + </storageModule> + <storageModule moduleId="refreshScope" versionNumber="1"> + <resource resourceType="PROJECT" workspacePath="/SafeStringStaticLibrary"/> + </storageModule> + <storageModule moduleId="org.eclipse.cdt.internal.ui.text.commentOwnerProjectMappings"/> +</cproject> diff -r 27f351c3d238 -r 9461f9495f90 safestringlib/.project --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/safestringlib/.project Fri Nov 30 09:48:16 2018 +0800 @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8"?> +<projectDescription> + <name>SafeStringStaticLibrary</name> + <comment></comment> + <projects> + </projects> + <buildSpec> + <buildCommand> + <name>org.eclipse.cdt.managedbuilder.core.genmakebuilder</name> + <triggers>clean,full,incremental,</triggers> + <arguments> + <dictionary> + <key>?name?</key> + <value></value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.append_environment</key> + <value>true</value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.autoBuildTarget</key> + <value>all</value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.buildArguments</key> + <value></value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.buildCommand</key> + <value>make</value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.buildLocation</key> + <value>${workspace_loc:/SafeStringStaticLibrary/Debug}</value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.cleanBuildTarget</key> + <value>clean</value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.contents</key> + <value>org.eclipse.cdt.make.core.activeConfigSettings</value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.enableAutoBuild</key> + <value>false</value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.enableCleanBuild</key> + <value>true</value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.enableFullBuild</key> + <value>true</value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.fullBuildTarget</key> + <value>all</value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.stopOnError</key> + <value>true</value> + </dictionary> + <dictionary> + <key>org.eclipse.cdt.make.core.useDefaultBuildCmd</key> + <value>true</value> + </dictionary> + </arguments> + </buildCommand> + <buildCommand> + <name>org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder</name> + <triggers>full,incremental,</triggers> + <arguments> + </arguments> + </buildCommand> + </buildSpec> + <natures> + <nature>org.eclipse.cdt.core.cnature</nature> + <nature>org.eclipse.cdt.managedbuilder.core.managedBuildNature</nature> + <nature>org.eclipse.cdt.managedbuilder.core.ScannerConfigNature</nature> + </natures> +</projectDescription> diff -r 27f351c3d238 -r 9461f9495f90 safestringlib/Debug/makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/safestringlib/Debug/makefile Fri Nov 30 09:48:16 2018 +0800 @@ -0,0 +1,44 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +-include ../makefile.init + +RM := rm -rf + +# All of the sources participating in the build are defined here +-include sources.mk +-include safeclib/subdir.mk +-include subdir.mk +-include objects.mk + +ifneq ($(MAKECMDGOALS),clean) +ifneq ($(strip $(C_DEPS)),) +-include $(C_DEPS) +endif +endif + +-include ../makefile.defs + +# Add inputs and outputs from these tool invocations to the build variables + +# All Target +all: libSafeString.a + +# Tool invocations +libSafeString.a: $(OBJS) $(USER_OBJS) + @echo 'Building target: $@' + @echo 'Invoking: GCC Archiver' + ar -r "libSafeString.a" $(OBJS) $(USER_OBJS) $(LIBS) + @echo 'Finished building target: $@' + @echo ' ' + +# Other Targets +clean: + -$(RM) $(OBJS)$(C_DEPS)$(ARCHIVES) libSafeString.a + -@echo ' ' + +.PHONY: all clean dependents +.SECONDARY: + +-include ../makefile.targets diff -r 27f351c3d238 -r 9461f9495f90 safestringlib/Debug/objects.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/safestringlib/Debug/objects.mk Fri Nov 30 09:48:16 2018 +0800 @@ -0,0 +1,8 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +USER_OBJS := + +LIBS := + diff -r 27f351c3d238 -r 9461f9495f90 safestringlib/Debug/sources.mk --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/safestringlib/Debug/sources.mk Fri Nov 30 09:48:16 2018 +0800 @@ -0,0 +1,17 @@ +################################################################################ +# Automatically-generated file. Do not edit! +################################################################################ + +O_SRCS := +C_SRCS := +S_UPPER_SRCS := +OBJ_SRCS := +ASM_SRCS := +OBJS := +C_DEPS := +ARCHIVES := + +# Every subdirectory with source files must be described here +SUBDIRS := \ +safeclib \ + diff -r 27f351c3d238 -r 9461f9495f90 safestringlib/LICENSE©ING.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/safestringlib/LICENSE©ING.txt Fri Nov 30 09:48:16 2018 +0800 @@ -0,0 +1,50 @@ +Safe C Library + + Copyright (c) 2014-2016, Intel Corporation. All rights reserved. + + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom the |