Home GnuPG
Diffusion GnuPG 4f37820334fa

common: Don't assume on-disk layout matches in-memory layout.
4f37820334faUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

common: Don't assume on-disk layout matches in-memory layout.

* g10/packet.h (PKT_signature): Change revkey's type from a struct
revocation_key ** to a struct revocation_key *.  Update users.

revkey was a pointer into the raw data. But, C doesn't guarantee that
there is no padding. Thus, we copy the data.

  • Signed-off-by: Neal H. Walfield <neal@g10code.com>.

Details

Provenance
Neal H. Walfield <neal@g10code.com>Authored on Aug 21 2015, 10:38 AM
Parents
rGb3226cadf9bb: common: Don't incorrectly copy packets with partial lengths.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rG4f37820334fa: common: Don't assume on-disk layout matches in-memory layout. (authored by Neal H. Walfield <neal@g10code.com>).Aug 21 2015, 2:21 PM