Re: svn commit: r336113 - head/usr.bin/gzip

2018-07-08 Thread Pedro Giffuni
On 07/08/18 17:45, Poul-Henning Kamp wrote: In message <201807082239.w68mdxwd053...@repo.freebsd.org>, "Pedro F. Giffuni" writes: New version: usize = buf[4]; usize |= (unsigned int)buf[5] << 8; usize |= (unsigned int)buf[6] << 16; usize |= (unsigned

Re: svn commit: r336113 - head/usr.bin/gzip

2018-07-08 Thread Poul-Henning Kamp
In message <201807082239.w68mdxwd053...@repo.freebsd.org>, "Pedro F. Giffuni" writes: > New version: > > usize = buf[4]; > usize |= (unsigned int)buf[5] << 8; > usize |= (unsigned int)buf[6] << 16; > usize |= (unsigned int)buf[7] << 24; Why not use the functions

svn commit: r336113 - head/usr.bin/gzip

2018-07-08 Thread Pedro F. Giffuni
Author: pfg Date: Sun Jul 8 22:39:33 2018 New Revision: 336113 URL: https://svnweb.freebsd.org/changeset/base/336113 Log: gzip: fix for undefined behavior. Unportable left shift reported with MKSANITIZER=yes USE_SANITIZER=undefined: # progress -zf ./games.tgz tar -xp -C "./" -f -