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

Fix splice usage pattern #396

Merged
merged 1 commit into from Mar 12, 2024
Merged

Conversation

xltan
Copy link
Contributor

@xltan xltan commented Mar 7, 2024

You should not modify(splice) the array in ascending order while iterating over it using a for loop.
Affect modules:
CertificateChainValidationEngine
SignedCertificateTimestamp

@xltan
Copy link
Contributor Author

xltan commented Mar 12, 2024

Hi, @microshine, not sure if I tagged the right person, would you please have a look into this? I believe CertificateChainValidationEngine.verify currently passes even if no certificate is valid. (if we supply multiple certificates)

@coveralls
Copy link

Coverage Status

coverage: 74.443% (+0.01%) from 74.432%
when pulling e563353 on xltan:fix/splice-usage
into ace03e1 on PeculiarVentures:master.

Copy link
Contributor

@microshine microshine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@xltan Thank you for the proposed fix that helps to correct the error. I am planning to accept this update and publish a new version of the package.

@microshine microshine merged commit 904d8fd into PeculiarVentures:master Mar 12, 2024
4 checks passed
@microshine
Copy link
Contributor

The new version of pkijs@3.0.16 has been released

@xltan xltan deleted the fix/splice-usage branch March 12, 2024 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants