Skip to content

Conversation

@ErvinsK
Copy link

@ErvinsK ErvinsK commented Oct 31, 2025

Summary

This PR fixes the case found when APER decoder is not byte-aligning after parsing SEQUENCE header that is followed by Octet String. The details are in the #506.

Changes

  • Added additional logic to check Codec type in function decode_octet_string in src/per/de.rs and parse padding if codec is APER.
  • Added new test in tests/issue506.rs

Notes

Closes #506

@XAMPPRocky
Copy link
Collaborator

@ErvinsK Thank you for your PR! It seems the formatting needs to be fixed.

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.

APER decoder when decoding SEQUENCE after reading header is not byte-aligning if OCTET STRING is followed

2 participants