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

PSA: missing test coverage for BUFFER_TOO_SMALL #200

Open
gilles-peskine-arm opened this issue Aug 2, 2019 · 3 comments
Open

PSA: missing test coverage for BUFFER_TOO_SMALL #200

gilles-peskine-arm opened this issue Aug 2, 2019 · 3 comments

Comments

@gilles-peskine-arm
Copy link
Collaborator

Description

We mostly don't test what psa_xxx functions do if they write output to a buffer and that buffer is too small.

Example bug (wrong error code): #199

For all API functions that take an output buffer, there should be at least one test that expects PSA_ERROR_BUFFER_TOO_SMALL with parameters that are correct except for one output buffer which is too small.

Issue request type

[ ] Question
[x] Enhancement
[ ] Bug
@ciarmcom
Copy link
Member

ciarmcom commented Aug 2, 2019

Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-849

@adbridge
Copy link

adbridge commented Nov 4, 2019

Apologies, this was closed in error by the automated bot - re-opening.

@yanesca
Copy link
Collaborator

yanesca commented Mar 16, 2020

Like with other similar issues, any improvement to the current state is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants