Skip to content

Fix write past end of array bug in tgeoseq_merge_array_iter#719

Merged
mschoema merged 1 commit intoMobilityDB:masterfrom
mschoema:tofree
Sep 25, 2025
Merged

Fix write past end of array bug in tgeoseq_merge_array_iter#719
mschoema merged 1 commit intoMobilityDB:masterfrom
mschoema:tofree

Conversation

@mschoema
Copy link
Copy Markdown
Member

We allocated an array of count sequences (the number of input sequences) in tgeoseq_merge_array_iter, but each of of the input sequences (except the first) can create 2 new sequences that need to be freed. So just double the size of the allocated array to account for this.

@mschoema mschoema linked an issue Sep 25, 2025 that may be closed by this pull request
@mschoema mschoema merged commit 6c578d5 into MobilityDB:master Sep 25, 2025
16 checks passed
@mschoema mschoema deleted the tofree branch September 25, 2025 10:43
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.

WARNING: detected write past chunk end in ExprContext

2 participants