free(): invalid pointer

Open
#7,522 13 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
c
Domain
cli

Research direction

Start by reproducing the posted xyz2grd command with GMT 6.4.0 and inspect the xyz2grd execution path for the invalid free. Confirm the command completes without aborting for this input and add or update coverage for the failure case if the repository provides a suitable test location.

Written by the indexing model from the issue text.

Description

bug
$ echo | gmt xyz2grd /dev/stdin -G/tmp/nn \
-JT-87/41/4c \
-I1M -R-100/100/-100/100
xyz2grd [WARNING]: For a UTM or TM projection, your region -100/100/-100/100 is too large to be in degrees and thus assumed to be in meters
free(): invalid pointer
Aborted
$ gmt --version
6.4.0
Dominant language
C
Stars
997
Forks
420
Avg merge
13h 27m
Merged PRs (30d)
47

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenericMappingTools/gmt

All issues in GenericMappingTools/gmt

Similar issues

More C issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.