Skip to content

Conversation

ioanatflowcrypt
Copy link
Collaborator

@ioanatflowcrypt ioanatflowcrypt commented Sep 17, 2025

This PR fixed maximum call stack size exceed error in PgpArmor.clip

close #6083 // if this PR closes an issue


Tests (delete all except exactly one):

  • Tests added or updated

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities
  • is documented clearly and usefully, or doesn't need documentation

@ioanatflowcrypt ioanatflowcrypt marked this pull request as ready for review September 17, 2025 09:10
Copy link
Collaborator

@sosnovsky sosnovsky left a comment

Choose a reason for hiding this comment

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

well done 👍

expect(PgpArmor.clipIncomplete('')).to.be.an.undefined;
expect(PgpArmor.clipIncomplete('plain text')).to.be.an.undefined;
expect(PgpArmor.clipIncomplete('prefix -----BEGIN PGP MESSAGE-----\n\nexample')).to.equal('-----BEGIN PGP MESSAGE-----\n\nexample');
test(`[unit][PgpArmor.clip] correctly handles all the cases including edge cases`, async t => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

great test improvement 👍

@sosnovsky sosnovsky merged commit e1a52e8 into master Sep 22, 2025
12 checks passed
@sosnovsky sosnovsky deleted the 6083-maximum-call-stack-size-exceeded-error-in-pgparmorclip branch September 22, 2025 09:55
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.

"Maximum call stack size exceeded" error in PgpArmor.clip

2 participants