PSA: missing test coverage for BUFFER_TOO_SMALL #200

Open
opened 2019-08-02 08:29:31 -05:00 by gilles-peskine-arm · 3 comments
gilles-peskine-arm commented 2019-08-02 08:29:31 -05:00 (Migrated from github.com)

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
### 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 commented 2019-08-02 10:49:41 -05:00 (Migrated from github.com)

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

*Internal Jira reference: https://jira.arm.com/browse/IOTCRYPT-849*
adbridge commented 2019-11-04 06:42:51 -06:00 (Migrated from github.com)

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

Apologies, this was closed in error by the automated bot - re-opening.
yanesca commented 2020-03-16 09:52:35 -05:00 (Migrated from github.com)

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

Like with other similar issues, any improvement to the current state is welcome.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-ARMmbed/mbed-crypto#200
No description provided.