Skip to content

Comments

Avoid integer overflow when swapping the buffer#11

Open
acfloria wants to merge 2 commits intoopenwfm:masterfrom
acfloria:fix/integer_overflow
Open

Avoid integer overflow when swapping the buffer#11
acfloria wants to merge 2 commits intoopenwfm:masterfrom
acfloria:fix/integer_overflow

Conversation

@acfloria
Copy link

@acfloria acfloria commented Jul 12, 2023

Large geotiffs, larger than 46341x46341 pixels, contain more pixels than int32 can hold (2,147,483,647). This caused an integer overflow when swapping the buffer and a subsequent segfault. It also lead due to the integer overflow the files being wrongly converted.

Tested with a 63072x39780 input file.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant