Skip to content

Fix the grdinfo crash for external grids - #3514

Merged
PaulWessel merged 4 commits into
masterfrom
grdinfo-crash
Jun 22, 2020
Merged

PaulWessel merged 4 commits into
masterfrom
grdinfo-crash

Conversation

@seisman

@seisman seisman commented Jun 21, 2020

Copy link
Copy Markdown
Member

@PaulWessel

I changed the C code testapi_matrix_as_grid.c to pass an external grid to grdinfo. Now it crashes for me.

Is it another API bug?

seisman and others added 2 commits June 21, 2020 12:14
Seems stupid but somehow this lloop would change the family of an input object during a check for output objects...
@PaulWessel

Copy link
Copy Markdown
Contributor

See if this does it for you, @seisman.

@PaulWessel

Copy link
Copy Markdown
Contributor

While at it, see if your vector strings pstext still fails after this fix.

@seisman

seisman commented Jun 21, 2020

Copy link
Copy Markdown
Member Author

Your commit fixes the grdinfo crash, but doesn't work for the vector-string case.

@seisman seisman changed the title WIP: grdinfo crash for external grids Fix the grdinfo crash for external grids Jun 21, 2020
@seisman

seisman commented Jun 21, 2020

Copy link
Copy Markdown
Member Author

@PaulWessel I added two grdinfo calls in testapi_matrix_as_grid.c to make sure that it won't crash in the future.

I think we can merge the PR into master, so that you can work on the pstext issue.

@PaulWessel
PaulWessel self-requested a review June 22, 2020 00:03
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.

2 participants