Skip to content

Is Tcg::submit_command be unsafe when the output slice is smaller than expected? #1768

@ChocolateLoverRaj

Description

@ChocolateLoverRaj

What happens if you submit a command that could have an output of up to 20 bytes, but you give an output slice of only 10 bytes?

I just tried calling TPM2_GetRandom and it was having weird behavior when I had an output slice that was too small, so I'm wondering what happens.

@nicholasbishop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions