Skip to content

Header : signed integer overflow #102

@Geompse

Description

@Geompse

When any of the memory usage values exceeds 2 147 483 648, on my system it gets generated in the JSON file as a negative integer.
This is a normal behavior for sprintf when called with %d : the argument is treated as an integer and presented as a signed decimal number.
You should replace %d with %lu : long unsigned decimal number.
%ld is a working replacement too, but since those values can't be negative...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions