Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Open
@ChocolateLoverRaj

Description

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

        AltStyle によって変換されたページ (->オリジナル) /