<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/tests, branch v8.26</title>
<subtitle>Mirror of https://https.git.savannah.gnu.org/git/coreutils.git/
</subtitle>
<id>https://git.shady.money/coreutils/atom?h=v8.26</id>
<link rel='self' href='https://git.shady.money/coreutils/atom?h=v8.26'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/'/>
<updated>2016-11-30T15:50:59Z</updated>
<entry>
<title>tests: fix false failure with spaces in $PWD</title>
<updated>2016-11-30T15:50:59Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-30T15:50:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=1ee01c40668c34ef53f398fc41447cf174559622'/>
<id>urn:sha1:1ee01c40668c34ef53f398fc41447cf174559622</id>
<content type='text'>
* tests/misc/ptx-overrun.sh: Quote appropriately to avoid this
recently added issue, noticed by `make taint-distcheck`.
</content>
</entry>
<entry>
<title>tests: fix ERRORs and false FAILs on some platforms</title>
<updated>2016-11-29T21:21:12Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-29T21:15:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a2bb79844fa9ef0a24a5930c88f6abd97180b9fa'/>
<id>urn:sha1:a2bb79844fa9ef0a24a5930c88f6abd97180b9fa</id>
<content type='text'>
* tests/misc/ls-time.sh: Skip the test rather than ERROR
when `touch -m -d ...` fails (Hurd).
* tests/tail-2/follow-stdin.sh: Avoid false FAILs by ignoring
the variances in sterror output.
* tests/rm/rm-readdir-fail.sh: Likewise.  Also avoid ERRORs
on systems that don't define _D_EXACT_NAMELEN.
</content>
</entry>
<entry>
<title>tac: fix mem corruption when failing to read non seekable inputs</title>
<updated>2016-11-28T13:19:24Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-27T15:09:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=a39641cbb8f37c5a19dd4820c6f6719c82d3e633'/>
<id>urn:sha1:a39641cbb8f37c5a19dd4820c6f6719c82d3e633</id>
<content type='text'>
This was detected with ASAN, but can also be seen without ASAN with:
  $ tac - - &lt;&amp;-
  tac: standard input: read error: Bad file descriptor
  *** Error in `tac': malloc(): memory corruption: 0x...

* src/tac.c (copy_to_temp): Don't close our output stream on
(possibly transient) output error, or on input error.
(temp_stream): clearerr() on the stream about to be reused,
to ensure future stream use is not impacted by transient errors.
* tests/misc/tac-2-nonseekable.sh: Add a test case.
* NEWS: Mention the bug fix.
Fixes http://bugs.gnu.org/25041
</content>
</entry>
<entry>
<title>tail: fix uninitialized memory read when failing to read file</title>
<updated>2016-11-27T21:10:15Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-27T13:00:35Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=6f30a99fa537adb029283cf2ef03cb4419350e6c'/>
<id>urn:sha1:6f30a99fa537adb029283cf2ef03cb4419350e6c</id>
<content type='text'>
Reproduced under UBSAN with `tail -f &lt;&amp;-` giving:
  tail.c:2220:18: runtime error: load of value 190,
  which is not a valid value for type ‘_Bool'

* src/tail.c (tail_file): Ensure f-&gt;ignore is initialized
in all cases where we can't tail the specified file.
* tests/tail-2/follow-stdin.sh: Add a test case which
checks stderr has no UBSAN warnings.
Fixes http://bugs.gnu.org/25041
</content>
</entry>
<entry>
<title>doc: add NEWS entries for recent changes</title>
<updated>2016-11-27T01:20:09Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-27T01:20:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=5c09e82b4f0227b957ba1a73695abe9b0a3fd78b'/>
<id>urn:sha1:5c09e82b4f0227b957ba1a73695abe9b0a3fd78b</id>
<content type='text'>
* NEWS: Mention in improvements about the workaround for
the glibc issue with closed stdin, and the new supported file systems.
* tests/misc/b2sum.sh: Spelling fix.
</content>
</entry>
<entry>
<title>shuf: test input-closed bug</title>
<updated>2016-11-26T23:38:08Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2016-11-26T23:37:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=c7c0c8b65981ab2163269ac8869ac763dc9f15c2'/>
<id>urn:sha1:c7c0c8b65981ab2163269ac8869ac763dc9f15c2</id>
<content type='text'>
Problem reported by Alex Ryan (Bug#25029).
* tests/misc/shuf.sh: Test for shuffling with stdin closed.
</content>
</entry>
<entry>
<title>tests: fix false failure on new ls test</title>
<updated>2016-11-25T14:35:13Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-25T14:35:13Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=55f14d7a092515e5a2eb0b907d5a857fce8cc7af'/>
<id>urn:sha1:55f14d7a092515e5a2eb0b907d5a857fce8cc7af</id>
<content type='text'>
* tests/ls/quote-align.sh: Remove "total" line
which can vary per file system depending on allocation.
Reported by Assaf Gordon on OpenSolaris (5.11/5.10).
</content>
</entry>
<entry>
<title>pr: fix read from invalid memory with tabs in separator</title>
<updated>2016-11-25T14:08:42Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-25T13:46:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d91aeef0527bf8ec0f83c3c3b69f3979c0b4c4a0'/>
<id>urn:sha1:d91aeef0527bf8ec0f83c3c3b69f3979c0b4c4a0</id>
<content type='text'>
This was detected with:
  echo a &gt; a; pr "-S$(printf "\t\t\t")" a -m a &gt; /dev/null
Resulting in ASAN triggering:
  ====================================================
  ERROR: AddressSanitizer: global-buffer-overflow
  READ of size 1 at 0x00000041b622 thread T0
    #0 0x40506a in print_sep_string ../src/pr.c:2241
    #1 0x407ec4 in read_line ../src/pr.c:2493
    #2 0x40985c in print_page ../src/pr.c:1802
    #3 0x40985c in print_files ../src/pr.c:1618
    #4 0x4036e0 in main ../src/pr.c:1136

* src/pr.c (init_parameters): Ensure we only override the
specified separator when it's a single tab, thus matching
the calculated separator length.
* tests/pr/pr-tests.pl: Add a test case.
* NEWS: Mention the fix.
</content>
</entry>
<entry>
<title>ptx: fix an invalid heap reference with short --width</title>
<updated>2016-11-24T16:21:59Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-24T15:56:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=ca99c524e828cc1a1cfeff3cdfc5349f87143829'/>
<id>urn:sha1:ca99c524e828cc1a1cfeff3cdfc5349f87143829</id>
<content type='text'>
* src/ptx.c (fix_output_parameters): Ensure line_width doesn't
go negative, which can happen when the --width is less
than the --gap-size.
* tests/misc/ptx-overrun.sh: Add a test case that triggers
with ASAN.  (Note the longer filename is needed to trigger).
Fixes http://bugs.gnu.org/25011
</content>
</entry>
<entry>
<title>tests: fix false failure with ASAN in rm-readdir-fail</title>
<updated>2016-11-24T01:31:45Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-24T01:26:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4258e97b2d8e84df6347d9095c4f82f6649b1d9e'/>
<id>urn:sha1:4258e97b2d8e84df6347d9095c4f82f6649b1d9e</id>
<content type='text'>
* tests/rm/rm-readdir-fail.sh: ASAN correctly indicated
that fts was writing to freed memory.  This was because
we reused a single dirent in our readdir() test wrapper.
Since fts was deallocating those dirents, we now get
a new dirent for each call to our readdir wrapper.
</content>
</entry>
</feed>
