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

nf90_get_att returning character variables with c null terminator #3201

Closed
bena-nasa opened this issue Dec 2, 2024 · 1 comment
Closed
Assignees
Labels
🪲 Bugfix This fixes a bug!

Comments

@bena-nasa
Copy link
Collaborator

While trying to use a NetCDF4 file provided by a user I was hitting an error that we ultimately traced to the fact that nf90_get_att was returning a character string with a C null terminator at the end. We are not sure if it is this file but we do need to protect against this. I will make a PR.

@bena-nasa bena-nasa added the 🪲 Bugfix This fixes a bug! label Dec 2, 2024
@weiyuan-jiang
Copy link
Contributor

I think we should use "pfio_get_att_string" instead of "nf90_get_att" . But I found many string version of nf90_get_att .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 Bugfix This fixes a bug!
Projects
None yet
Development

No branches or pull requests

2 participants