Skip to content

Unchecked input in rd_string_name() #1228

Description

@eivindjahren

is_rd_string_name() reads type_name[1..3] unconditionally, so calling it with a short string (e.g. "C" or "") is undefined behavior (out-of-bounds read). Since this code path is now expected to throw on invalid inputs (for fuzzing/error handling), add a length guard before calling is_rd_string_name() in rd_type_create_from_name().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions