summaryrefslogtreecommitdiff
path: root/lib/header.c
Commit message (Expand)AuthorAgeFilesLines
* Better sanity check for header entry countsPanu Matilainen2021-03-221-4/+3
* hdrblobInit() needs bounds checks tooDemi Marie Obenour2021-03-221-17/+31
* Fix regression from commit 165330b7bf0757e30fa8a6de9998a564fb62796fPanu Matilainen2021-03-221-2/+7
* Avoid incrementing a pointer past the endDemi M. Obenour2021-03-221-4/+2
* Tag data must have count greater than zeroDemi Marie Obenour2021-03-221-0/+9
* Verify that data does not overlap region trailerDemi Marie Obenour2021-03-221-0/+9
* Fix off-by-one in hdrblobGet() making last entry unreachable (RhBug:1722921)Panu Matilainen2019-08-281-1/+1
* Drop bogus condition from header index allocationPanu Matilainen2019-06-191-4/+1
* Fix regression reading some old v4.0 era packages (#610)Panu Matilainen2019-01-071-0/+3
* hdrblobImport() doesn't support NULL as hdrp (#487)Panu Matilainen2018-08-151-2/+1
* Add internal API for allocating and freeing hdrblob objectsPanu Matilainen2018-04-251-0/+15
* Further relax type checking among different string tag types (#414)Panu Matilainen2018-03-271-3/+3
* Typecheck header tags match our definitions prior to import (#242, #414)Panu Matilainen2018-03-141-0/+25
* Drop a redundant binary entry size assignmentPanu Matilainen2018-02-201-1/+0
* Only use offset optimization for string types in HEADERIMPORT_FAST (#398)Panu Matilainen2018-02-201-1/+2
* Place file signatures into the signature header where they belongPanu Matilainen2017-10-101-1/+1
* Add missing "il" to header sanity check error messagePanu Matilainen2017-08-151-1/+1
* Use a simple heuristic to test for source package headersMichael Schroeder2017-06-281-0/+10
* Add an internal, limited-functionality headerGet() for raw headerblobPanu Matilainen2017-04-261-0/+34
* Note memory ownership transfer in hdrblobImport() to avoid double-freesPanu Matilainen2017-02-211-0/+3
* Sanity check header tag values. Like, doh.Panu Matilainen2017-02-031-0/+8
* Prevent double-free on hdrblobRead() failure (#147)Panu Matilainen2017-02-031-0/+1
* Unbreak headerCopyLoad() (manifesting as segfault on signing)Panu Matilainen2017-01-111-1/+7
* Eliminate redundant "uc" field from hdr blob structPanu Matilainen2017-01-111-4/+3
* Simplify intGetTdEntry()Panu Matilainen2016-12-091-11/+3
* Eliminate another mindless use of switch-case for a do-something booleanPanu Matilainen2016-12-011-6/+1
* Clarify comments on header legacy regionsPanu Matilainen2016-11-281-3/+3
* Permit headers with legacy region in headerCheck() and friendsPanu Matilainen2016-11-281-1/+2
* Refactor headerImport() around struct hdrblob and APIPanu Matilainen2016-11-251-88/+47
* Handle HEADERIMPORT_COPY in headerImport()Panu Matilainen2016-11-251-5/+6
* Clean up headerWrite() a bitPanu Matilainen2016-11-231-8/+4
* Refactor headerRead() to use hdrblobRead() + hdrblobImport()Panu Matilainen2016-11-231-45/+5
* Add a helper function for importing an already read hdrblobPanu Matilainen2016-11-231-0/+15
* Support non-exact size case in hdrblobRead(), update callersPanu Matilainen2016-11-231-2/+2
* Support no header magic case in hdrblobRead(), update callersPanu Matilainen2016-11-231-4/+6
* Autodetect region tag in hdrblobVerifyRegion() if not specifiedPanu Matilainen2016-11-231-0/+5
* Bury a pile of header internal defines inside header.cPanu Matilainen2016-11-231-0/+33
* Handle signature header padding in hdrblobRead()Panu Matilainen2016-11-221-0/+10
* Consolidate signature + header read to new hdrblobRead() functionPanu Matilainen2016-11-221-0/+65
* Refactor hdrblobInit() to call headerVerifyInfo() by itselfPanu Matilainen2016-11-221-1/+5
* Move blob size checking into hdrblobInit() where it belongsPanu Matilainen2016-11-221-0/+7
* Bury headerVerifyRegion() into header.c where it belongsPanu Matilainen2016-11-221-1/+82
* Refactor hdrblobInit() to do region verify/init by itselfPanu Matilainen2016-11-221-3/+12
* Refactor headerVerifyInfo() to hdrblob struct, adjust callersPanu Matilainen2016-11-221-7/+7
* Introduce a struct for raw header blob + initialization APIPanu Matilainen2016-11-221-0/+17
* Eliminate the now pointless pointer from headerVerifyInfo()Panu Matilainen2016-11-171-10/+10
* Drop the now unnecessary info retval from headerVerifyInfo()Panu Matilainen2016-11-171-5/+2
* Add back separate check for tag data offset rangePanu Matilainen2016-11-171-0/+2
* Make sure start pointer is legal in strtaglen()Panu Matilainen2016-11-171-0/+2
* Oops, missed early return from headerVerifyInfo()Panu Matilainen2016-11-171-1/+1