Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nc_inq_format segfaults when passed a NULL for formatp #678

Closed
edhartnett opened this issue Nov 22, 2017 · 0 comments · Fixed by #680
Closed

nc_inq_format segfaults when passed a NULL for formatp #678

edhartnett opened this issue Nov 22, 2017 · 0 comments · Fixed by #680

Comments

@edhartnett
Copy link
Contributor

I found this while increasing test coverage in ncfunc.c under #677. When I try this code:

if (nc_inq_format(ncid, NULL) != NC_EBADID) ERR;

I get:


Program received signal SIGSEGV, Segmentation fault.
0x00007ffff7b312a8 in NC3_inq_format (ncid=65578, formatp=0x0) at nc3internal.c:1599
1599		    *formatp = NC_FORMAT_CLASSIC;

I will fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant