Skip to content

Code assumption failed to pass static analyzer #157

@zicofish

Description

@zicofish

The PRG code won't pass some strict static analyzer (warning as error), pointing to a potential vulnerability here:

memcpy(data, tmp, nbytes);

There seems to be an assumption about the execution condition of the second branch: nbytes <= 32, which might be ensured by the call to std::align. Perhaps this should be made more explicit in the code?

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