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: test operations with small buffers #7541

Open
gilles-peskine-arm opened this issue May 3, 2023 · 0 comments
Open

PSA: test operations with small buffers #7541

gilles-peskine-arm opened this issue May 3, 2023 · 0 comments
Labels
component-psa PSA keystore/dispatch layer (storage, drivers, …) enhancement size-l Estimated task size: large (2w+)

Comments

@gilles-peskine-arm
Copy link
Contributor

In the PSA tests, we aren't systematically testing behavior when an output buffer is too small.

When an output buffer is too small:

  • The function must return PSA_ERROR_BUFFER_TOO_SMALL (at least if no other error condition applies).
  • The length output parameter must be set to a value that's smaller than the size.
  • The output buffer should still be set to a safe value.

(Re-raised from a private tracker from the early days of the PSA code.)

Size estimate: between M and L. I'm filing as L because this is definitely not a single-PR task. There's not much of a design space but quite a bit of code to write.

@gilles-peskine-arm gilles-peskine-arm added enhancement component-psa PSA keystore/dispatch layer (storage, drivers, …) size-l Estimated task size: large (2w+) labels May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component-psa PSA keystore/dispatch layer (storage, drivers, …) enhancement size-l Estimated task size: large (2w+)
Projects
None yet
Development

No branches or pull requests

1 participant