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

Get/Check type of attribute #238

Open
Flamefire opened this issue Jun 15, 2016 · 0 comments
Open

Get/Check type of attribute #238

Flamefire opened this issue Jun 15, 2016 · 0 comments

Comments

@Flamefire
Copy link
Contributor

Flamefire commented Jun 15, 2016

Is there currently any way to check the type of an attribute?
I currently see only the interface readAttribute(int32_t id, const char *dataName, const char *attrName, void* data) which completely ignores the type. So reading a double when a float was expected leads to buffer overflows. Even worse for unexpected array attributes.

Especially for multidimensional values this is a problem. You cannot read a value, that may have multiple dimensions as you don't know how many values are in the HDF5 file.

ccing @slizzered @ax3l

@ax3l ax3l added this to the Version 1.5/1.4.X milestone Jun 17, 2016
@Flamefire Flamefire mentioned this issue Jun 24, 2016
3 tasks
@ax3l ax3l modified the milestones: Future, Version 1.5/1.4.X, Version 1.6/1.5.X Oct 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants