Skip to content

rose_build_add.cpp: Potential Integer Overflow #328

@stasos24

Description

@stasos24

Since 'ig[e].graph_lag' and 'graph_max_width' have uint32 type

and 'graph_max_width' can have value :

(1u << 31) - 2; 

which is checked at

if (!graph_max_width.is_finite()) {

there could be overflow at

max_width = ig[e].graph_lag + graph_max_width;

'max_width' has u64 type

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