Skip to content

added version number to dispatch table, and check it in nc_def_user_format()#1635

Merged
WardF merged 13 commits intoUnidata:masterfrom
NOAA-GSD:ejh_dispatch
Feb 26, 2020
Merged

added version number to dispatch table, and check it in nc_def_user_format()#1635
WardF merged 13 commits intoUnidata:masterfrom
NOAA-GSD:ejh_dispatch

Conversation

@edwardhartnett
Copy link
Copy Markdown
Contributor

@edwardhartnett edwardhartnett commented Feb 9, 2020

Fixes #1599
Fixes #1031

As discussed with @DennisHeimbigner in this PR a version number is added to the dispatch table, and checked by nc_def_user_format().

If the version number is incorrect, nc_def_user_format() rejects with dispatch table with NC_EINVAL.

This is to help ensure that the dispatch table used by PIO and other third party libraries is correct.

@edwardhartnett edwardhartnett requested a review from WardF as a code owner February 9, 2020 20:28
@edwardhartnett
Copy link
Copy Markdown
Contributor Author

@WardF this PR should be merged before next release. It contains some additional checking that Dennis suggested for user-defined formats. We want to get those new checks out as soon as possible.

Thanks!

@WardF WardF merged commit 50c3c37 into Unidata:master Feb 26, 2020
@edwardhartnett
Copy link
Copy Markdown
Contributor Author

Thanks @WardF !

@edwardhartnett edwardhartnett deleted the ejh_dispatch branch February 27, 2020 12:13
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.

User Defined formats considered harmful :-) User-Defined Format Issues...

2 participants