rpm-build/rpmio
Alexey Tourbin a1a075caa2 rpmio: fixed Fwrite() truncated return value
This is the reason why files >= 2G could not be added to cpio, even on
64-bit architectures.  Fwrite was called with a buffer >= 2G, but the
return value was truncated to int (this narrowing conversion is probably
undefined behavior already; what happens next, though, is that after
casting to size_t it assumes a very big numeric value of >= 2^64-2^32).
So rpmbuild was failing with an unrelated errno, "cpio: write failed -
Bad file descriptor".

There are other reasons why this still won't work on 32-bit architectures.
For one, rpmbuild mmaps a file before feeding it to cpio, and 32-bit
architectures have a very limited ability, if any, to mmap 2G+ files.
2018-06-26 12:42:44 +03:00
..
.lclintrc re-added .lclintrc and .cvsignore files from CVS 2002-03-25 20:27:37 +00:00
bsearch.h bsearch.h: initial revision 2011-01-06 03:30:42 +03:00
digest.c Migrate to new libbeecrypt 2010-08-12 20:41:06 +00:00
macro.c rpmio/macro.c (doShellEscape): fix an off-by-one error in stripping trailing newlines 2013-02-07 14:25:10 +00:00
Makefile.am Fix automake warnings 2014-02-15 22:19:47 +00:00
rpmerr.h sync with rpm4 branch: RPMERR_QUERYINFO 2002-03-25 22:09:36 +00:00
rpmio_internal.h Include local headers. 2006-05-15 03:26:57 +04:00
rpmio.c rpmio: fixed Fwrite() truncated return value 2018-06-26 12:42:44 +03:00
rpmio.h rpmio.c: updated lzdio for xz-5.0 API, added xzdio 2009-09-24 12:30:07 +04:00
rpmlog.c fixed compilation warnings 2003-11-24 18:59:03 +00:00
rpmlog.h Initial revision 2002-03-25 20:16:26 +00:00
rpmmacro.h macro.c: replaced repeated bsearch+qsort with BSEARCH, 10x faster startup 2011-01-06 04:04:18 +03:00
rpmmalloc.c Initial revision 2002-03-25 20:16:26 +00:00
rpmmessages.h Initial revision 2002-03-25 20:16:26 +00:00
rpmpgp.c Migrate to new libbeecrypt 2010-08-12 20:41:06 +00:00
rpmpgp.h Migrate to new libbeecrypt 2010-08-12 20:41:06 +00:00
rpmrpc.c rpmio/rpmrpc.c (Glob): Override gl_stat to allow broken symlinks. 2006-10-04 16:18:09 +00:00
rpmurl.h Initial revision 2002-03-25 20:16:26 +00:00
strcasecmp.c strcasecmp.c: enhanced with table lookup 2011-01-06 03:22:55 +03:00
stubs.c Initial revision 2002-03-25 20:16:26 +00:00
tdigest.c Initial revision 2002-03-25 20:16:26 +00:00
tficl.c Initial revision 2002-03-25 20:16:26 +00:00
tkey.c Initial revision 2002-03-25 20:16:26 +00:00
tring.c Initial revision 2002-03-25 20:16:26 +00:00
trpmio.c Initial revision 2002-03-25 20:16:26 +00:00
ugid.c Initial revision 2002-03-25 20:16:26 +00:00
ugid.h Initial revision 2002-03-25 20:16:26 +00:00
url.c fixed rpmExpand usage 2005-09-29 16:01:17 +00:00