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 stack buffer overflow in AES-CBC test #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fishilico
Copy link

@fishilico fishilico commented May 29, 2022

Hello,

While testing Pull Request #7, projects/WjCryptLibTest/WjCryptLibTest was failing. Investing why led me to discovering a problem with the size of a stack buffer in the code which tests AES-CBC.

On x86-64, the AES-CBC test fails because the vector local buffer is to small to hold the encrypted test vector: the vector was created with 64 bytes while the buffer can only hold 48.

This Pull Requests increases TEST_VECTOR_OUTPUT_SIZE to 64 to fix this issue.

On x86-64, the AES-CBC test fails because the `vector` local buffer is
to small to hold the encrypted test vector: the vector was created with
64 bytes while the buffer can only hold 48.

Increase `TEST_VECTOR_OUTPUT_SIZE` to 64 to fix this issue.
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.

1 participant