Skip to content

af_alg_iv::as_slice makes a slice of the struct data, but the fields are public. #1501

Open
@Lokathor

Description

@Lokathor

af_alg_iv::as_slice makes a slice, but the fields are public and it's a public type, so you could construct a value, set the length to be some invalid value, and then call as_slice to make a slice with an improper length, pointing into invalid memory.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bugC-tracking-issueE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.I-needs-decisionI-unsound 💥A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions