Skip to content

Overflow risk? #35

@ykempf

Description

@ykempf

Correct me if I am wrong, but if the buffer size is set to the maximum of 2G, then this line will overflow and misbehave if the buffer is just below the limit and if bufferTop + size exceeds 2G, as all of these are int.
https://github.com/fmihpc/vlsv/blob/master/vlsv_writer.cpp#L788

Isn't it?

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