summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn M. Schanck <jschanck@mozilla.com>2023-02-23 16:22:24 +0000
committerJohn M. Schanck <jschanck@mozilla.com>2023-02-23 16:22:24 +0000
commita0b5910d52112e6e32c5f54ad37533cde603feae (patch)
tree8b77dde21c43c846e9312de578887c0492469da3
parent9c627ae6c3d0ed7e12a5de333116c253e2213f5c (diff)
downloadnss-hg-a0b5910d52112e6e32c5f54ad37533cde603feae.tar.gz
Bug 1804662 - remove data length assertion in sec_PKCS7Decrypt. r=nss-reviewers,nkulatova
Differential Revision: https://phabricator.services.mozilla.com/D170672
-rw-r--r--lib/pkcs7/p7local.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/pkcs7/p7local.c b/lib/pkcs7/p7local.c
index 182e385b6..94086a684 100644
--- a/lib/pkcs7/p7local.c
+++ b/lib/pkcs7/p7local.c
@@ -458,7 +458,6 @@ sec_PKCS7Decrypt(sec_PKCS7CipherObject *obj, unsigned char *output,
* If we do not, there is something wrong, either with our own
* logic or with (length of) the data given to us.
*/
- PORT_Assert((padsize == 0) || (pcount % padsize) == 0);
if ((padsize != 0) && (pcount % padsize) != 0) {
PORT_Assert(final);
PORT_SetError(SEC_ERROR_BAD_DATA);