diff options
author | Wan-Teh Chang <wtc@google.com> | 2015-10-21 17:16:17 -0700 |
---|---|---|
committer | Wan-Teh Chang <wtc@google.com> | 2015-10-21 17:16:17 -0700 |
commit | b8bcc4090c1031f6b08bf2ae8b35a2b1f36f2305 (patch) | |
tree | 3be2406ac9c13da8b872af0c6009c1d9f3e9d231 | |
parent | 4a47e15ba3f4202dfd16599009f874023b2f8694 (diff) | |
download | nss-hg-b8bcc4090c1031f6b08bf2ae8b35a2b1f36f2305.tar.gz |
Bug 1148374: Revert changeset 9c2345405e0c because it is incorrect.
-rw-r--r-- | cmd/lib/derprint.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/lib/derprint.c b/cmd/lib/derprint.c index 285eb036b..75811df3f 100644 --- a/cmd/lib/derprint.c +++ b/cmd/lib/derprint.c @@ -503,10 +503,9 @@ prettyPrintItem(FILE *out, const unsigned char *data, const unsigned char *end, data += lenLen; /* - * Just quit now if slen more bytes puts us off the end, - * or if there's no more data to process. + * Just quit now if slen more bytes puts us off the end. */ - if ((data + slen) >= end) { + if ((data + slen) > end) { PORT_SetError(SEC_ERROR_BAD_DER); return -1; } |