Commit 8ecf69ef authored by Evan Hunt's avatar Evan Hunt

migrate t_names to lib/dns/tests/name_test

parent 109546cb
......@@ -7,7 +7,6 @@ sdig
t_db
gsstest
t_dst
t_names
conf.sh
dlopen
keycreate
......
......@@ -32,7 +32,7 @@ ISCCFGDEPLIBS = ../../lib/isccfg/libisccfg.@A@
LIBS = @LIBS@
SUBDIR = db dst names system @PKCS11_TOOLS@ optional
SUBDIR = db dst system @PKCS11_TOOLS@ optional
TESTDIRS = system
......
# Copyright (C) Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
srcdir = @srcdir@
VPATH = @srcdir@
top_srcdir = @top_srcdir@
@BIND9_MAKE_INCLUDES@
CINCLUDES = ${TEST_INCLUDES} ${DNS_INCLUDES} ${ISC_INCLUDES}
CDEFINES =
CWARNINGS =
# Note that we do not want to use libtool for libt_api
DNSLIBS = ../../../lib/dns/libdns.@A@ @DNS_CRYPTO_LIBS@
ISCLIBS = ../../../lib/isc/libisc.@A@ @ISC_OPENSSL_LIBS@
DNSDEPLIBS = ../../../lib/dns/libdns.@A@
ISCDEPLIBS = ../../../lib/isc/libisc.@A@
DEPLIBS = ${DNSDEPLIBS} ${ISCDEPLIBS}
LIBS = ${DNSLIBS} ${ISCLIBS} @LIBS@
TLIB = ../../../lib/tests/libt_api.@A@
TARGETS = t_names@EXEEXT@
SRCS = t_names.c
@BIND9_MAKE_RULES@
t_names@EXEEXT@: t_names.@O@ ${DEPLIBS} ${TLIB}
${LIBTOOL_MODE_LINK} ${PURIFY} ${CC} ${CFLAGS} ${LDFLAGS} -o $@ t_names.@O@ ${TLIB} ${LIBS}
test: t_names@EXEEXT@
-@./t_names@EXEEXT@ -c @top_srcdir@/t_config -b @srcdir@ -a
testhelp:
@./t_names@EXEEXT@ -h
clean distclean::
rm -f ${TARGETS}
#
# test data for dns_name_compare
# format:
# <name1> <tab> <name2> <tab> <exp_order>
# where: exp_order may be one of: -1, 0, 1
#
# and where: exp_nlabels and exp_nbits are not tested if < 0
#
c.d a.b.c.d -1
a.b.c.d c.d 1
a.b.c a.b.c 0
#
# test data for dns_name_countlabels
# format:
# <name> <tab> <nlabels>
#
c.d 2
c.d. 3
a.b.c.d 4
a.b.c 3
. 1
#
# test data for dns_name_fromregion
# format:
# <test_name>
# where: exp_order may be one of: -1, 0, 1
#
# and where: exp_nlabels and exp_nbits are not tested if < 0
#
a.b.c.d.
a.b.c.d.[A].[aaa.
Ba\x\aa.b.c\[\[o\\.Z
Ba\x\aa.b.c\[\[o\\\..\.Z
#
# test data for dns_name_fromtext
# format:
# <name1> <tab> <name2> <tab> <origin> <tab> <downcase>
#
a.b a.b.c.d C.d 1
a.b a.b.c.d C.d 1
a.b a.b.C.d C.d 0
a.b. a.b. C.d 0
#
# test data for dns_name_fromwire_1
# format:
# <msgfile> <testname_offset> <downcase>
# <dc_method> <exp_name> <exp_result>
#
# where msgfile contains a DNS message in hex form
#
# and where testname_offset is the byte offset in this message of
# the start of a name
#
# and where downcase is 1 or 0
#
# and where dc_method is one of
# DNS_COMPRESS_ALL
# DNS_COMPRESS_GLOBAL14
# DNS_COMPRESS_NONE
#
# and where exp_name is the expected name after any decompression
# or case conversion
#
# and where exp_result may be one of
# ISC_R_NOSPACE
# DNS_R_BADLABELTYPE
# DNS_R_DISALLOWED
# DNS_R_BADPOINTER
# ISC_R_UNEXPECTEDEND
# DNS_R_TOOMANYHOPS
#
wire_test1.data 25 1 DNS_COMPRESS_ALL vix.com. ISC_R_SUCCESS
#
# test data for dns_name_fromwire_2
# format:
# <msgfile> <testname_offset> <downcase>
# <dc_method> <exp_name> <exp_result>
#
# where msgfile contains a DNS message in hex form
#
# and where testname_offset is the byte offset in this message of
# the start of a name
#
# and where downcase is 1 or 0
#
# and where dc_method is one of
# DNS_COMPRESS_ALL
# DNS_COMPRESS_GLOBAL14
# DNS_COMPRESS_NONE
#
# and where exp_name is the expected name after any decompression
# or case conversion
#
# and where exp_result may be one of
# ISC_R_NOSPACE
# DNS_R_BADLABELTYPE
# DNS_R_DISALLOWED
# DNS_R_BADPOINTER
# ISC_R_UNEXPECTEDEND
# DNS_R_TOOMANYHOPS
#
wire_test2.data 25 1 DNS_COMPRESS_ALL vix.com. ISC_R_NOSPACE
#
# test data for dns_name_fromwire_3
# format:
# <msgfile> <testname_offset> <downcase>
# <dc_method> <exp_name> <exp_result>
#
# where msgfile contains a DNS message in hex form
#
# and where testname_offset is the byte offset in this message of
# the start of a name
#
# and where downcase is 1 or 0
#
# and where dc_method is one of
# DNS_COMPRESS_ALL
# DNS_COMPRESS_GLOBAL14
# DNS_COMPRESS_NONE
#
# and where exp_name is the expected name after any decompression
# or case conversion
#
# and where exp_result may be one of
# ISC_R_NOSPACE
# DNS_R_BADLABELTYPE
# DNS_R_DISALLOWED
# DNS_R_BADPOINTER
# ISC_R_UNEXPECTEDEND
# DNS_R_TOOMANYHOPS
#
wire_test3_1.data 25 1 DNS_COMPRESS_ALL vix.com. DNS_R_BADLABELTYPE
wire_test3_2.data 25 1 DNS_COMPRESS_ALL vix.com. DNS_R_BADLABELTYPE
#
# test data for dns_name_fromwire_4
# format:
# <msgfile> <testname_offset> <downcase>
# <dc_method> <exp_name> <exp_result>
#
# where msgfile contains a DNS message in hex form
#
# and where testname_offset is the byte offset in this message of
# the start of a name
#
# and where downcase is 1 or 0
#
# and where dc_method is one of
# DNS_COMPRESS_ALL
# DNS_COMPRESS_GLOBAL14
# DNS_COMPRESS_NONE
#
# and where exp_name is the expected name after any decompression
# or case conversion
#
# and where exp_result may be one of
# ISC_R_NOSPACE
# DNS_R_BADLABELTYPE
# DNS_R_DISALLOWED
# DNS_R_BADPOINTER
# ISC_R_UNEXPECTEDEND
# DNS_R_TOOMANYHOPS
#
wire_test4.data 550 1 DNS_COMPRESS_ALL vix.com. DNS_R_NAMETOOLONG
#
# test data for dns_name_fromwire_5
# format:
# <msgfile> <testname_offset> <downcase>
# <dc_method> <exp_name> <exp_result>
#
# where msgfile contains a DNS message in hex form
#
# and where testname_offset is the byte offset in this message of
# the start of a name
#
# and where downcase is 1 or 0
#
# and where dc_method is one of
# DNS_COMPRESS_ALL
# DNS_COMPRESS_GLOBAL14
# DNS_COMPRESS_NONE
#
# and where exp_name is the expected name after any decompression
# or case conversion
#
# and where exp_result may be one of
# ISC_R_NOSPACE
# DNS_R_BADLABELTYPE
# DNS_R_DISALLOWED
# DNS_R_BADPOINTER
# ISC_R_UNEXPECTEDEND
# DNS_R_TOOMANYHOPS
#
wire_test5.data 25 1 DNS_COMPRESS_NONE vix.com. DNS_R_DISALLOWED
#
# test data for dns_name_fromwire_6
# format:
# <msgfile> <testname_offset> <downcase>
# <dc_method> <exp_name> <exp_result>
#
# where msgfile contains a DNS message in hex form
#
# and where testname_offset is the byte offset in this message of
# the start of a name
#
# and where downcase is 1 or 0
#
# and where dc_method is one of
# DNS_COMPRESS_ALL
# DNS_COMPRESS_GLOBAL14
# DNS_COMPRESS_NONE
#
# and where exp_name is the expected name after any decompression
# or case conversion
#
# and where exp_result may be one of
# ISC_R_NOSPACE
# DNS_R_BADLABELTYPE
# DNS_R_DISALLOWED
# DNS_R_BADPOINTER
# ISC_R_UNEXPECTEDEND
# DNS_R_TOOMANYHOPS
#
wire_test6.data 25 1 DNS_COMPRESS_ALL vix.com. DNS_R_BADPOINTER
#
# test data for dns_name_fromwire_7
# format:
# <msgfile> <testname_offset> <downcase>
# <dc_method> <exp_name> <exp_result>
#
# where msgfile contains a DNS message in hex form
#
# and where testname_offset is the byte offset in this message of
# the start of a name
#
# and where downcase is 1 or 0
#
# and where dc_method is one of
# DNS_COMPRESS_ALL
# DNS_COMPRESS_GLOBAL14
# DNS_COMPRESS_NONE
#
# and where exp_name is the expected name after any decompression
# or case conversion
#
# and where exp_result may be one of
# ISC_R_NOSPACE
# DNS_R_BADLABELTYPE
# DNS_R_DISALLOWED
# DNS_R_BADPOINTER
# ISC_R_UNEXPECTEDEND
# DNS_R_TOOMANYHOPS
#
wire_test7.data 25 1 DNS_COMPRESS_ALL vix.com. ISC_R_UNEXPECTEDEND
#
# test data for dns_name_fromwire_9
# format:
# <msgfile> <testname_offset> <downcase>
# <dc_method> <exp_name> <exp_result>
#
# where msgfile contains a DNS message in hex form
#
# and where testname_offset is the byte offset in this message of
# the start of a name
#
# and where downcase is 1 or 0
#
# and where dc_method is one of
# DNS_COMPRESS_ALL
# DNS_COMPRESS_GLOBAL14
# DNS_COMPRESS_NONE
#
# and where exp_name is the expected name after any decompression
# or case conversion
#
# and where exp_result may be one of
# ISC_R_NOSPACE
# DNS_R_BADLABELTYPE
# DNS_R_DISALLOWED
# DNS_R_BADPOINTER
# ISC_R_UNEXPECTEDEND
# DNS_R_TOOMANYHOPS
#
wire_test8.data 25 1 DNS_COMPRESS_ALL vix.com. ISC_R_NOSPACE
#
# test data for dns_name_fullcompare
# format:
# <name1> <tab> <name2> <tab> <exp_reln> <tab> <exp_order> <tab> <exp_nlabels> <tab> <exp_nbits>
# where: exp_reln may be one of:
# none, equal, contains, subdomain, commonancestor
# and where: exp_nlabels and exp_nbits are not tested if < 0
#
c.d a.b.c.d contains -1 2 0
a.b.c.d c.d subdomain 1 2 0
#
# test data for dns_name_compare
# format:
# <name1> <tab> <label1_pos> <tab> <name2> <tab> <label2_pos>
# where: label1_pos and label2_pos identify the label position of
# the common label shared by name1 and name2 respectively
#
c.d 1 a.b.c.d 3
a.b.c.d 3 c.d 1
a.b.c. 3 a.b.c. 3
#
# test data for dns_name_getlabelsequence
# format:
# <name1> <tab> <label1_start> <tab> <name2> <tab> <label2_start> <tab> <extent>
#
#
c.d 1 a.b.c.d 3 1
a.b.c.d.e 2 c.d 0 2
a.b.c 0 a.b.c 0 3
#
# test data for dns_name_hash
# format:
# <testname1> <tab> <testname2> <tab> <cshm> <tab> <cishm>
# where:
# cshm is 0 if a case sensitive hash of testname1 should match a
# case sensitive hash of testname2, otherwise cshm != 0
# and:
# cishm is 0 if a case insensitive hash of testname1 should match a
# case insensitive hash of testname2, otherwise cishm != 0
#
a.b.c.d A.B.C.D 0 1
#
# test data for dns_name_isabsolute
# format is:
# <testname> <tab> <expected value>
#
x. 1
a.b.c.d 0
x.z. 1
#
# test data for dns_name_issubdomain
# format:
# <name1> <tab> <name2> <tab> <issubdomain>
# where: issubdomain is 0 if false, else non-zero
#
# and where: exp_nlabels and exp_nbits are not tested if < 0
#
c.d a.b.c.d 0
a.b.c.d c.d 1
a.b.c. a.b.c. 1
#
# test data for dns_name_rdatacompare
# format:
# <name1> <tab> <name2> <tab> <exp_order>
# where: exp_order may be one of: -1, 0, 1
#
# and where: exp_nlabels and exp_nbits are not tested if < 0
#
c.d. a.b.c.d. 1
a.b.c.d. c.d. -1
a.b.c. a.b.c. 0
#
# test data for dns_name_toregion
# format:
# <test_name>
#
a.b.c.d.
a.b.c.d.[A].[aaa.
Ba\x\aa.b.c\[\[o\\.Z
#
# test data for dns_name_totext
# format:
# <name1> <tab> <omit_final_dot>
#
a.b.c.d 1
a.\\[\[.c.d 1
a.b.C.d 0
a.b. 0
# test data for dns_name_towire_1
# format:
# <testname> <dc_method> <exp_data>
# <exp_data_len> <exp_result>
#
# where testname is the test name to be converted to wire format
#
# and where dc_method is one of
# DNS_COMPRESS_ALL
# DNS_COMPRESS_GLOBAL14
# DNS_COMPRESS_NONE
#
# and where exp_data is the expected wire format data in hex format
# and where exp_data_len is the length of the expected data in decimal format
# and where exp_result is the expected return value of dns_name_towire
#
a.vix.com. DNS_COMPRESS_NONE 01610376697803636f6d00 11 ISC_R_SUCCESS
# test data for dns_name_towire_1
# format:
# <testname> <dc_method> <exp_data>
# <exp_data_len> <exp_result>
#
# where testname is the test name to be converted to wire format
#
# and where dc_method is one of
# DNS_COMPRESS_ALL
# DNS_COMPRESS_GLOBAL14
# DNS_COMPRESS_NONE
#
# and where exp_data is the expected wire format data in hex format
# and where exp_data_len is the length of the expected data in decimal format
# and where exp_result is the expected return value of dns_name_towire
#
a.vix.com DNS_COMPRESS_NONE 01610376697803636f6d 10 ISC_R_NOSPACE
This diff is collapsed.
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<Filter Include="Source Files">
<UniqueIdentifier>{4FC737F1-C7A5-4376-A066-2A32D752A2FF}</UniqueIdentifier>
<Extensions>cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx</Extensions>
</Filter>
<Filter Include="Header Files">
<UniqueIdentifier>{93995380-89BD-4b04-88EB-625FBE52EBFB}</UniqueIdentifier>
<Extensions>h;hpp;hxx;hm;inl;inc;xsd</Extensions>
</Filter>
<Filter Include="Resource Files">
<UniqueIdentifier>{67DA6AB6-F800-4c08-8B7A-83BB121AAD01}</UniqueIdentifier>
<Extensions>rc;ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe;resx;tiff;tif;png;wav;mfcribbon-ms</Extensions>
</Filter>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\t_names.c">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|@PLATFORM@">
<Configuration>Debug</Configuration>
<Platform>@PLATFORM@</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|@PLATFORM@">
<Configuration>Release</Configuration>
<Platform>@PLATFORM@</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{124DC0D3-3096-41D2-B490-CE85E890FF33}</ProjectGuid>
<Keyword>Win32Proj</Keyword>
<RootNamespace>t_names</RootNamespace>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<WholeProgramOptimization>true</WholeProgramOptimization>
<CharacterSet>MultiByte</CharacterSet>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
<LinkIncremental>true</LinkIncremental>
<OutDir>..\..\..\..\Build\$(Configuration)\</OutDir>
<IntDir>.\$(Configuration)\</IntDir>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
<LinkIncremental>false</LinkIncremental>
<OutDir>..\..\..\..\Build\$(Configuration)\</OutDir>
<IntDir>.\$(Configuration)\</IntDir>
</PropertyGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|@PLATFORM@'">
<ClCompile>
<PrecompiledHeader>
</PrecompiledHeader>
<WarningLevel>Level3</WarningLevel>
<Optimization>Disabled</Optimization>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<FunctionLevelLinking>true</FunctionLevelLinking>
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
<BrowseInformation>true</BrowseInformation>
<AdditionalIncludeDirectories>.\;..\..\..\..\;@LIBXML2_INC@..\..\..\..\lib\isc\win32;..\..\..\..\lib\isc\win32\include;..\..\..\..\lib\isc\include;..\..\..\..\lib\dns\include;..\..\..\..\lib\tests\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<CompileAs>CompileAsC</CompileAs>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>true</GenerateDebugInformation>
<OutputFile>..\..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
<AdditionalLibraryDirectories>..\..\..\..\lib\isc\win32\$(Configuration);..\..\..\..\lib\dns\win32\$(Configuration);..\..\..\..\lib\tests\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>@LIBXML2_LIB@libisc.lib;libdns.lib;libtests.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|@PLATFORM@'">
<ClCompile>
<WarningLevel>Level3</WarningLevel>
<PrecompiledHeader>
</PrecompiledHeader>
<Optimization>MaxSpeed</Optimization>
<FunctionLevelLinking>true</FunctionLevelLinking>
<IntrinsicFunctions>@INTRINSIC@</IntrinsicFunctions>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<InlineFunctionExpansion>OnlyExplicitInline</InlineFunctionExpansion>
<WholeProgramOptimization>false</WholeProgramOptimization>
<StringPooling>true</StringPooling>
<PrecompiledHeaderOutputFile>.\$(Configuration)\$(TargetName).pch</PrecompiledHeaderOutputFile>
<AssemblerListingLocation>.\$(Configuration)\</AssemblerListingLocation>
<ObjectFileName>.\$(Configuration)\</ObjectFileName>
<ProgramDataBaseFileName>$(OutDir)$(TargetName).pdb</ProgramDataBaseFileName>
<AdditionalIncludeDirectories>.\;..\..\..\..\;@LIBXML2_INC@..\..\..\..\lib\isc\win32;..\..\..\..\lib\isc\win32\include;..\..\..\..\lib\isc\include;..\..\..\..\lib\dns\include;..\..\..\..\lib\tests\include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<CompileAs>CompileAsC</CompileAs>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>false</GenerateDebugInformation>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<OutputFile>..\..\..\..\Build\$(Configuration)\$(TargetName)$(TargetExt)</OutputFile>
<LinkTimeCodeGeneration>Default</LinkTimeCodeGeneration>
<AdditionalLibraryDirectories>..\..\..\..\lib\isc\win32\$(Configuration);..\..\..\..\lib\dns\win32\$(Configuration);..\..\..\..\lib\tests\win32\$(Configuration);%(AdditionalLibraryDirectories)</AdditionalLibraryDirectories>
<AdditionalDependencies>@LIBXML2_LIB@libisc.lib;libdns.lib;libtests.lib;ws2_32.lib;%(AdditionalDependencies)</AdditionalDependencies>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="..\t_names.c" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
</Project>
\ No newline at end of file
#
# a global14 compression pointer
#
000a85800001000300000003
0376697803636f6d0000020001c00c00
02000100000e10000b05697372763102
7061c00cc00c0002000100000e100009
066e732d657874c00cc00c0002000100
000e10000e036e733104676e61630363
6f6d00c0250001000100000e100004cc
98b886c03c0001000100000e100004cc
98b840c051000100010002a14a0004c6
97f8f6
#
# a global14 compression pointer
#
000a85800001000300000003
8376697803636f6d0000020001c00c00
02000100000e10000b05697372763102
7061c00cc00c0002000100000e100009
066e732d657874c00cc00c0002000100
000e10000e036e733104676e61630363
6f6d00c0250001000100000e100004cc
98b886c03c0001000100000e100004cc
98b840c051000100010002a14a0004c6
97f8f6
#
# a bad compression pointer starting with the bits 1111
#
000a85800001000300000003
03766978 03636f6d 00 0002 0001
f00c 0002 0001 0000 0e10 000b 056973727631 027061 c00c
c00c 0002 0001 0000 0e10 0009 066e732d657874 c00c
c00c 0002 0001 0000 0e10 000e 036e7331 04676e6163 03636f6d 00
c025 0001 0001 0000 0e10 0004 cc98b886
c03c 0001 0001 0000 0e10 0004 cc98b840
c051 0001 0001 0002 a14a 0004 c697f8f6
#
# a bad compression pointer due to forward reference of 0x30 to
# another compression pointer with a valid backreference
#
000a85800001000300000003
03766978 03636f6d 00 0002 0001
c030 0002 0001 0000 0e10 000b 056973727631 027061 c00c
c00c 0002 0001 0000 0e10 0009 066e732d657874 c00c
c00c 0002 0001 0000 0e10 000e 036e7331 04676e6163 03636f6d 00
c025 0001 0001 0000 0e10 0004 cc98b886
c03c 0001 0001 0000 0e10 0004 cc98b840
c051 0001 0001 0002 a14a 0004 c697f8f6
#
# invalid name length, pointer at offset 0x0226 points to
# long name at offset 0x25
#
000a 8580 0001 0003 0000 0001
03 766978 03 636f6d 00 0002 0001
c00c 0002 0001 00000e10
0101
# long name starts here
03616263 0358595a 03616263 0358595a
03414243 0378797a 03414243 0378797a
03616263 0358595a 03616263 0358595a
03414243 0378797a 03414243 0378797a
03616263 0358595a 03616263 0358595a
03414243 0378797a 03414243 0378797a
03616263 0358595a 03616263 0358595a
03414243 0378797a 03414243 0378797a
03616263 0358595a 03616263 0358595a
03414243 0378797a 03414243 0378797a
03616263 0358595a 03616263 0358595a
03414243 0378797a 03414243 0378797a
03616263 0358595a 03616263 0358595a
03414243 0378797a 03414243 0378797a
03616263 0358595a 03616263 0358595a
03414243 0378797a 03414243 0378797a
03616263 0358595a 03616263 0358595a