commit | cb32d3bd66c988221f95c4518de9aaf3b1e09233 | [log] [tgz] |
---|---|---|
author | Brian Gitonga Marete <marete@toshnix.com> | Mon Jul 27 01:25:02 2015 +0300 |
committer | Adam Langley <agl@golang.org> | Mon Jul 27 22:29:30 2015 +0000 |
tree | e15d7733abd7bea580d25d9473aa897d7f0ed206 | |
parent | 7d5b0be716b9d6d4269afdaae10032bb296d3cdf [diff] |
openpgp: Fix panic on opaque subpackets with length 0. Some invalid input may be parsed so that the length of an opaque subpacket turns out to be 0. In such cases, arrange for a StructuralError to be returned indicating truncation. Found using gofuzz. Fixes golang/go#11503 Change-Id: Ib9ce8c604f35a31f852adfcd56a22dfd143a9443 Reviewed-on: https://go-review.googlesource.com/12634 Reviewed-by: Adam Langley <agl@golang.org>