Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary assert in PK11MessageDigest.c
This ASSERT_OUTOFMEM(env) is incorrect for two reasons: 1. When JSS_RefByteArray detects a zero-length result, it returns false but doesn't throw an exception. It is up to the caller to handle that as they wish. In our case, we can safely skip the PK11_DigestOp call. 2. When length < offset+len (and JSS_RefByteArray exits successfully), we won't have thrown an exception. This only shows up in debug builds; release builds aren't affected. Signed-off-by: Alexander Scheel <[email protected]>
- Loading branch information