svn commit: r273734 - head/bin/dd

Kurt Jaeger pi at FreeBSD.org
Tue Oct 28 14:14:31 UTC 2014


Hi!

> Dag-Erling Smørgrav <des at des.no> writes:
> > Kurt Jaeger <pi at FreeBSD.org> writes:
> > > I do not have a working arm setup right now.
> > This is a bug on all platforms, and both clang and (recent) gcc should
> > complain about it.  That printf() call will print garbage.
> 
> Correction: it will print garbage on 32-bit platforms, where sizeof(int)
> != sizeof(intmax_t), but clang and gcc should still emit a warning.

Yes. I'm old enough to remember the mess in C when going from 16bit
to 32bit that I should have paid attention to the test case on 32bit, but
my stupidity won 8-(

Right now the submitter tests on 32bit and if time permits, I'll
experiment on ARM as well.

Sorry again for the mess.

-- 
pi at FreeBSD.org         +49 171 3101372                6 years to go !


More information about the svn-src-all mailing list