Skip to content

Conversation

@miyazakh
Copy link
Contributor

@miyazakh miyazakh commented Jan 8, 2026

Description

The crlNumber field in the CRL_Entry structure stores the CRL Number as a hexadecimal string using mp_toradix. However, its buffer size is defined by CRL_MAX_NUM_SZ, which represents the maximum CRL Number size in octets, not the hexadecimal string length.

Since each octet requires two hexadecimal characters plus a null terminator, the hexadecimal string buffer size should be defined as CRL_MAX_NUM_SZ * 2 + 1.

Issue#9086

Testing

Add unit test

Checklist

  • added tests
  • updated/added doxygen
  • updated appropriate READMEs
  • Updated manual and documentation

@miyazakh miyazakh self-assigned this Jan 8, 2026
@miyazakh
Copy link
Contributor Author

miyazakh commented Jan 8, 2026

retest this please

@miyazakh miyazakh assigned wolfSSL-Bot and unassigned miyazakh Jan 8, 2026
Copy link
Contributor

@padelsbach padelsbach left a comment

Choose a reason for hiding this comment

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

Good find. I added some minor questions and comments

@miyazakh
Copy link
Contributor Author

miyazakh commented Jan 9, 2026

retest this please

@miyazakh
Copy link
Contributor Author

miyazakh commented Jan 9, 2026

retest this please

@miyazakh miyazakh removed their assignment Jan 10, 2026
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.

4 participants