summaryrefslogtreecommitdiffstats
path: root/ffi
diff options
context:
space:
mode:
authorJustus Winter <justus@sequoia-pgp.org>2020-06-05 12:09:27 +0200
committerJustus Winter <justus@sequoia-pgp.org>2020-06-05 12:52:09 +0200
commit4c7f664493ba35181eca0a6ff8630a4ddf2e01b2 (patch)
tree2ae2db3be2af94de6fd4ce69d44133cfe92aa612 /ffi
parent2e0cb0de66e73ff6681276e90f31690a991bffc5 (diff)
openpgp: Fix parsing.
- Previously, a signature packet with a malformed embedded signature would break the parsing, because the embedded signature is turned into an unknown packet, hence `Signature::from_reader` returns `Error::InvalidOperation` and so does `SubpacketArea::parse`. Errors from that function are handled using php_try!, but that did not make the packet turn into an unknown packet, but terminated the parsing. - Looking at `Subpacket::parse` revealed that there are more errors that would terminate parsing in the outlined way, notably `Error::MalformedPacket`, but there may be others. - Fix this by tweaking php_try! to return unknown packets on any `openpgp::Error`.
Diffstat (limited to 'ffi')
0 files changed, 0 insertions, 0 deletions