Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in lint for BR 7.1.4.2.2a mailbox-validated #844

Closed
robstradling opened this issue May 24, 2024 · 0 comments · Fixed by #845
Closed

Bug in lint for BR 7.1.4.2.2a mailbox-validated #844

robstradling opened this issue May 24, 2024 · 0 comments · Fixed by #845

Comments

@robstradling
Copy link
Member

The lint added in PR #806 (7c899ea) incorrectly handles the case where Subject:commonName is not present in a Mailbox Validation S/MIME certificate.

When there is no Subject:commonName in a certificate, Subject.CommonName in the z509 Certificate object is an empty string. The bug is that the e_commonname_mailbox_validated lint is passing this empty string to util.IsMailboxAddress instead of ignoring it, resulting in a false positive error.

This bug blocks Sectigo from upgrading to ZLint v3.6.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant