rpm/lib
Panu Matilainen e51644e0ee Make the signature header size constant between 32- and 64-bit tags
Since commit 68bddc353a we're initially
creating the signature header with estimated values, and if you're
unlucky enough to have the estimated and actual size on the different
sides of UINT32_MAX boundary, the resulting package will have the main
header off by eight bytes, making it unreadable by rpm (RhBug:1405570)

Always reserve a little bit of space in the signature header so we
we can maintain the overall size constant regardless of whether 32- or
64-bit tags were used by using a smaller "padding" with 64bit tags.
2017-01-13 11:02:42 +02:00
..
backend ndb: fix regression from 20f2c51053 2016-02-22 14:56:39 +01:00
.gitignore build: Update .gitignore rules 2011-10-11 12:55:15 +03:00
Makefile.am Define AM_CFLAGS inside the Makefile.am files themselves. 2016-12-09 11:35:38 +02:00
cpio.c Fix overflow in cpio filename by limiting the allowed length to 4kB 2016-09-05 10:12:29 +02:00
cpio.h Fix doxygen warnings 2015-02-17 15:31:22 +01:00
depends.c Remove RPMSENSE_RICH and replace its use with rpmdsIsRich() 2015-08-31 16:45:30 +02:00
formats.c Avoid rpmtdFormat() recursion in xmlFormat() 2016-10-26 11:49:58 +03:00
fprint.c Replace rpmdbCheckSignals() with rpmsqPoll() everywhere, eliminate from API 2016-12-14 18:57:58 +02:00
fprint.h Allow passing a shared pool for finger print cache 2012-09-14 14:21:10 +03:00
fsm.c Revised fix for CVE-2013-6435 2016-10-11 09:58:15 +03:00
fsm.h Fix doxygen warnings 2015-02-17 15:31:22 +01:00
gentagtbl.sh Use actual enum values in tag table sentinel to avoid int/enum mismatch 2010-09-21 15:26:25 +03:00
header.c Unbreak headerCopyLoad() (manifesting as segfault on signing) 2017-01-11 11:40:01 +02:00
header.h Eliminate the umphteen deprecated N(E)VR(A) etc getter APIs 2016-10-24 12:37:18 +03:00
header_internal.h Eliminate redundant "uc" field from hdr blob struct 2017-01-11 11:26:21 +02:00
headerfmt.c Fix calculation of array size when formating query results. 2016-12-01 15:52:47 +01:00
headerutil.c Move headerConvert() and its helpers to headerutil.c 2016-10-24 12:38:28 +03:00
manifest.c Don't accept '-' in manifests 2015-11-18 15:53:52 +01:00
manifest.h Drop bogus const from rpmReadPackageManifest argvptr 2007-12-18 12:53:57 +02:00
misc.h Clean up rpmdb leftovers from an atexit() handler. 2016-12-13 11:19:03 +02:00
order.c Actually use supplements and enhances... 2016-12-08 13:23:33 +01:00
package.c Permit headers with legacy region in headerCheck() and friends 2016-11-28 12:43:50 +02:00
poptALL.c Rename addMacro() and delMacro() to rpmPushMacro() and rpmPopMacro() 2016-10-24 13:09:38 +03:00
poptI.c Reimplement setprogname() and getprogname() to be generic and portable 2016-02-11 14:05:25 +01:00
poptQV.c Fix --noghost option (rhbz:1306438) 2016-02-19 13:17:48 +01:00
psm.c Fix preun scriptlet failure not aborting rpm erase 2016-07-29 17:36:41 +02:00
query.c Replace rpmdbCheckSignals() with rpmsqPoll() everywhere, eliminate from API 2016-12-14 18:57:58 +02:00
relocation.c Eliminate a mindless switch-case in rpmInstallLoadMacros() 2016-12-09 09:20:10 +02:00
rpmal.c Do self-conflicts/obsoletes filtering in rpmalAllFileSatisfiesDepend 2014-08-21 11:43:54 +02:00
rpmal.h Fix doxygen warnings 2015-02-17 15:31:22 +01:00
rpmarchive.h Add/fix a few missing/misleading doxygen annotations 2016-11-02 13:37:09 +02:00
rpmcallback.h Add RPMCALLBACK_ELEM_PROGRESS callback type 2016-01-28 17:03:54 +01:00
rpmchecksig.c Eliminate redundant "uc" field from hdr blob struct 2017-01-11 11:26:21 +02:00
rpmchroot.c Add an error message + comments on open(".") behavior (RhBug:672576) 2011-01-28 13:19:53 +02:00
rpmchroot.h Add "c++ protection" to (hopefully) all of our internal headers 2010-09-21 15:21:12 +03:00
rpmcli.h Add option the select option --builtrpms to rpmspec(rhbz:961833) 2016-03-09 14:51:27 +01:00
rpmdb.c Call rpmsqBlock() directly from rpmdb code to remove unused cruft 2016-12-15 14:14:39 +02:00
rpmdb.h Replace rpmdbCheckSignals() with rpmsqPoll() everywhere, eliminate from API 2016-12-14 18:57:58 +02:00
rpmdb_internal.h Fix doxygen warnings 2015-02-17 15:31:22 +01:00
rpmds.c Add sanity checks into extracting rpmds from rpm header 2015-11-27 16:41:39 +01:00
rpmds.h Remove RPMSENSE_RICH and replace its use with rpmdsIsRich() 2015-08-31 16:45:30 +02:00
rpmds_internal.h Add rpmdsFilterTi() to filter rpmds according to trigger index. 2015-02-05 08:08:12 +01:00
rpmfi.c Fix linear search fallback case in rpmfnFindFN() 2016-11-08 12:04:25 +02:00
rpmfi.h Fix missing @param in rpmfilesVerify() and rpmfiVerify() doxygen doco 2016-12-01 11:39:04 +02:00
rpmfi_internal.h Add rpmfilesFindPrefix() to find files with given prefix. 2015-02-05 08:08:12 +01:00
rpmfiles.h Fix missing @param in rpmfilesVerify() and rpmfiVerify() doxygen doco 2016-12-01 11:39:04 +02:00
rpmfs.c Reset file actions between rpmtsRun() calls (RhBug:1076552) 2014-03-21 12:44:03 +02:00
rpmfs.h Reset file actions between rpmtsRun() calls (RhBug:1076552) 2014-03-21 12:44:03 +02:00
rpmgi.c Remove some unnecessary assignments flagged by cppcheck 2016-07-29 17:41:36 +02:00
rpmgi.h Stop abusing enum typedefs for bitfield types 2010-09-21 11:10:14 +03:00
rpmhash.C Fix memory leak in rpmhash implementation 2014-09-16 11:12:10 +02:00
rpmhash.H Add alternative hash key add/get/check methods with prehashed key 2012-09-05 10:38:36 +03:00
rpminstall.c Replace rpmdbCheckSignals() with rpmsqPoll() everywhere, eliminate from API 2016-12-14 18:57:58 +02:00
rpmlead.c Ensure rpmlead is fully initialized 2016-11-30 09:17:53 +02:00
rpmlead.h ...and finally bury the rpmlead datatype entirely inside rpmlead.c 2016-10-27 11:08:25 +03:00
rpmlib.h rpmReadHeader() does not check for signatures, really 2016-11-22 13:42:51 +02:00
rpmliblua.c Add lua 5.2 support. 2012-10-09 08:28:52 +03:00
rpmliblua.h Add "c++ protection" to (hopefully) all of our internal headers 2010-09-21 15:21:12 +03:00
rpmlock.c Dont wait for transaction lock within scriptlets (RhBug:1135596) 2014-10-01 09:59:21 +03:00
rpmlock.h Export rpmlock release method internally as well 2013-03-11 11:12:35 +02:00
rpmplugin.h Drop the experimental collection support 2014-06-17 16:27:24 +03:00
rpmplugins.c Fix misleading-indentation in rpmplugins.c 2016-09-21 10:10:09 +02:00
rpmplugins.h Fix doxygen warnings 2015-02-17 15:31:22 +01:00
rpmpol.h Stop abusing enum typedefs for bitfield types 2010-09-21 11:10:14 +03:00
rpmprob.c Revert the previous change, it caused regressions (rhbz:1303265) 2016-02-01 09:43:58 +01:00
rpmprob.h Spelling fixes. 2013-02-19 21:35:40 +02:00
rpmps.c Fix couple of incorrect sizeof() uses 2011-03-17 14:08:54 +02:00
rpmps.h Eliminate all fooUnlink() functions out of the API 2010-09-13 13:08:33 +03:00
rpmrc.c Clean up rpmdb leftovers from an atexit() handler. 2016-12-13 11:19:03 +02:00
rpmscript.c Ignore SIGPIPE signals during execucton of scriptlets (rhbz:1264198) 2015-10-30 14:42:32 +01:00
rpmscript.h Now rpmScriptFromTriggertag() can load file trigger scripts. 2015-02-05 08:08:12 +01:00
rpmsignfiles.c rpmsign: Use default hash algo if RPMTAG_FILEDIGESTALGO missing 2016-08-24 18:22:49 +02:00
rpmsignfiles.h Add support for passing the file signing key password 2015-08-12 14:23:31 +02:00
rpmtag.h add short summaries to headers that miss one 2016-01-28 14:42:47 +01:00
rpmtd.c Force header data formatting through a central function 2016-10-25 13:51:47 +03:00
rpmtd.h add short summaries to headers that miss one 2016-01-28 14:42:47 +01:00
rpmte.c Move RPMCALLBACK_ELEM_PROGRESS to rpmteProcess to have header available 2016-11-22 10:44:42 +01:00
rpmte.h Drop the experimental collection support 2014-06-17 16:27:24 +03:00
rpmte_internal.h Move RPMCALLBACK_ELEM_PROGRESS to rpmteProcess to have header available 2016-11-22 10:44:42 +01:00
rpmtriggers.c Fix %transfiletriggerpostun undeterministic behavior (RhBug:1284645) 2016-11-07 13:46:04 +02:00
rpmtriggers.h runImmedFileTriggers() is supposed to be internal 2016-10-24 13:45:16 +03:00
rpmts.c Block signals during RPMTXN_WRITE transactions 2016-12-15 14:21:48 +02:00
rpmts.h Add disabler flag + --noplugins cli switch for plugins 2014-06-24 15:14:35 +03:00
rpmts_internal.h File triggers moved to own file 2015-07-23 11:03:02 +02:00
rpmtypes.h Chainsaw rpmfi iteration apart from the actual file set 2013-11-07 14:27:26 +02:00
rpmug.c Initialize all the name services we need 2014-01-28 09:45:55 +02:00
rpmug.h Initialize all the name services we need 2014-01-28 09:45:55 +02:00
rpmvercmp.c Spelling fixes. 2013-02-19 21:35:40 +02:00
rpmvf.h Export file verification as a rpmfiles/rpmfi method 2016-10-27 15:38:09 +03:00
signature.c Make the signature header size constant between 32- and 64-bit tags 2017-01-13 11:02:42 +02:00
signature.h Eliminate now unused rpmNewSignature() and rpmFreeSignature() 2016-10-24 11:36:14 +03:00
tagexts.c Make sure getNEVRA always sets td.data 2016-04-26 10:05:35 +02:00
tagname.c Make arrays static so valgrind does not complain about lost memory 2016-03-31 11:53:31 +02:00
transaction.c Replace rpmdbCheckSignals() with rpmsqPoll() everywhere, eliminate from API 2016-12-14 18:57:58 +02:00
verify.c Make filter query/verify by file attributes generic 2016-11-17 10:50:18 +02:00