<feed xmlns='http://www.w3.org/2005/Atom'>
<title>coreutils/src, 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-28T18:36:32Z</updated>
<entry>
<title>head: fix processing of non-seekable input as seekable</title>
<updated>2016-11-28T18:36:32Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-28T17:11:18Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=0655b86a6ebc6f1324810d504a71803aa708d162'/>
<id>urn:sha1:0655b86a6ebc6f1324810d504a71803aa708d162</id>
<content type='text'>
* src/head.c (elide_tail_bytes_file): Ensure we don't use
st_size unless we've previously used seek() to determine
the CURRENT_POS in the seekable file.
This was seen to cause issue on FreeBSD 11 when the pipe
buffer was filled with `yes | head --lines=-0`, in which
case st_size was 64KiB while ST_BLKSIZE() was 4KiB.
Reported by Assaf Gordon.
</content>
</entry>
<entry>
<title>install,mkdir: fix handling of -DZ and -pZ, respectively</title>
<updated>2016-11-28T16:17:31Z</updated>
<author>
<name>Kamil Dudka</name>
<email>kdudka@redhat.com</email>
</author>
<published>2016-11-28T15:21:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=d8104265f229ababd5a68a46eeccbccc07e72cdc'/>
<id>urn:sha1:d8104265f229ababd5a68a46eeccbccc07e72cdc</id>
<content type='text'>
... in the case where two or more directories nested in each other are
created and each of them defaults to a different SELinux context.

* src/install.c (make_ancestor): When calling defaultcon(), give it the
same path that is given to mkdir().  The other path is not always valid
wrt. current working directory.
* src/mkdir.c (make_ancestor): Likewise.
* NEWS: Mention the bug fix.

Reported at https://bugzilla.redhat.com/1398913
</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>stat,tail: sync with latest Linux file systems</title>
<updated>2016-11-27T00:28:16Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-26T16:10:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=286a401bc5d98e36c23824270d3410cd6fa8bc13'/>
<id>urn:sha1:286a401bc5d98e36c23824270d3410cd6fa8bc13</id>
<content type='text'>
Update with the results from:

  kgit='https://git.kernel.org/cgit/linux/kernel/git'
  wget -q $kgit/torvalds/linux.git/plain/include/uapi/linux/magic.h \
    -O src/fs-latest-magic.h
  make src/fs-magic-compare

* src/stat.c (human_fstype): Add entries for:
BALLOON_KVM, CGROUP2, DAXFS, ZSMALLOC.
</content>
</entry>
<entry>
<title>build: fix potential factor build failure on arm and risc</title>
<updated>2016-11-27T00:28:16Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-26T15:55:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=4535563318c9c82a9f41f73f97b948952c13c6d7'/>
<id>urn:sha1:4535563318c9c82a9f41f73f97b948952c13c6d7</id>
<content type='text'>
* src/longlong.h: Sync from gmp repo incorporating:
Protect umul_ppmm with do ... while (0)
Replace obsolete ARC asm 'J' constraints with 'Cal'
Provide umul_ppmm for riscv64
</content>
</entry>
<entry>
<title>shred,sort: ensure faster unaligned access to rand module</title>
<updated>2016-11-27T00:27:45Z</updated>
<author>
<name>Pádraig Brady</name>
<email>P@draigBrady.com</email>
</author>
<published>2016-11-25T22:10:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=12f6214d07ad93814bad81cb384e087792068213'/>
<id>urn:sha1:12f6214d07ad93814bad81cb384e087792068213</id>
<content type='text'>
glibc has changed the public define
from _STRING_ARCH_unaligned to _STRING_INLINE_unaligned as per
https://sourceware.org/bugzilla/show_bug.cgi?id=19462

* gl/lib/rand-isaac.c: Cater for both defines.
* gl/lib/randread.c: Likewise.
* src/system.h: Update commented out code.
</content>
</entry>
<entry>
<title>numfmt: pacify Sun C 5.14</title>
<updated>2016-11-26T02:54:32Z</updated>
<author>
<name>Paul Eggert</name>
<email>eggert@cs.ucla.edu</email>
</author>
<published>2016-11-26T02:54:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/coreutils/commit/?id=e490178c39f707b0151d584c252286189f2ffcef'/>
<id>urn:sha1:e490178c39f707b0151d584c252286189f2ffcef</id>
<content type='text'>
* src/numfmt.c (main): Don't implicitly coerce pointer in bool
initializer.  Although it's portable C99 code, it's confusing.
</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>
</feed>
