diff options
author | Patsy Franklin <pfrankli@redhat.com> | 2019-01-30 18:49:27 -0500 |
---|---|---|
committer | Patsy Franklin <patsy@redhat.com> | 2019-02-08 14:38:27 -0500 |
commit | 11eb21c4659ae0bde83bcd070bc9a0f94fb3576b (patch) | |
tree | 466403279df7abfb57f823a245a0112e719c9f63 /nss/tst-nss-files-hosts-long.root | |
parent | e47d82c99a6db060419b421768aced76bea92997 (diff) | |
download | glibc-11eb21c4659ae0bde83bcd070bc9a0f94fb3576b.tar.gz glibc-11eb21c4659ae0bde83bcd070bc9a0f94fb3576b.tar.xz glibc-11eb21c4659ae0bde83bcd070bc9a0f94fb3576b.zip |
nss: Add tst-nss-files-hosts-long test [BZ #21915]
When the /etc/hosts file has a line longer than 1028 characters getent ahostsv4 and ahostsv6 will fail. This test performs a getent call on a /etc/hosts file that contains a very long line (greater than 1028) using the test-in-container framework.
Diffstat (limited to 'nss/tst-nss-files-hosts-long.root')
-rw-r--r-- | nss/tst-nss-files-hosts-long.root/etc/hosts | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/nss/tst-nss-files-hosts-long.root/etc/hosts b/nss/tst-nss-files-hosts-long.root/etc/hosts new file mode 100644 index 0000000000..db33f42f14 --- /dev/null +++ b/nss/tst-nss-files-hosts-long.root/etc/hosts @@ -0,0 +1,8 @@ +# This data is valid and short. +192.168.1.1 test4.example.com test4 +::2 test6.example.com test6 + +# Long line data is arbitrary and not specifically chosen. +# They key issue is that it should be long to trigger the parser failure. +192.168.2.2 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa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