Skip to content

Conversation

@PaulWessel
Copy link
Member

The function gmtvector_fix_up_path_cartonly builds a stair-step curve from an array by adding the extra horizontal or vertical steps, thus lengthening the array. Yet, there was no check to allocate more memory once we passed the initial GMT_INITIAL_MEM_ROW_ALLOC points. So it took a large file to exceed that and then crash, reveling the bug.

The function gmtvector_fix_up_path_cartonly builds a stair-step curve from an array by adding the extra horizontal or vertical steps, thus lengthening the array.  Yet, there was no check to allocate more memory once we passed the initial GMT_INITIAL_MEM_ROW_ALLOC points.  So it took a large file to exceed that and then crash, reveling the bug.
@PaulWessel PaulWessel added the backport 6.1 Backport this PR to 6.1 branch label Jul 22, 2020
@PaulWessel PaulWessel requested review from joa-quim and seisman July 22, 2020 21:44
@PaulWessel PaulWessel merged commit e9b0b35 into master Jul 23, 2020
@PaulWessel PaulWessel deleted the mem-alloc branch July 23, 2020 00:14
github-actions bot pushed a commit that referenced this pull request Jul 23, 2020
The function gmtvector_fix_up_path_cartonly builds a stair-step curve from an array by adding the extra horizontal or vertical steps, thus lengthening the array.  Yet, there was no check to allocate more memory once we passed the initial GMT_INITIAL_MEM_ROW_ALLOC points.  So it took a large file to exceed that and then crash, reveling the bug.
PaulWessel added a commit that referenced this pull request Jul 23, 2020
The function gmtvector_fix_up_path_cartonly builds a stair-step curve from an array by adding the extra horizontal or vertical steps, thus lengthening the array.  Yet, there was no check to allocate more memory once we passed the initial GMT_INITIAL_MEM_ROW_ALLOC points.  So it took a large file to exceed that and then crash, reveling the bug.

Co-authored-by: Paul Wessel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 6.1 Backport this PR to 6.1 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants