[PROPOSAL] Remove unsafe Fortran API calls #406
derobins
started this conversation in
Proposed Change
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PROBLEM
The HDF4 Fortran API has some API wrappers that store pointers in 32-bit Fortran integers, which is fundamentally unsafe on 64-bit systems.
Example (from:
hdf/src/dff.c
)We do not have a list of unsafe API calls at this time. We'd have to compile this list and any affected wrapper calls would have to be either removed or the integer type would have to match the pointer size.
PROPOSED FIX
HOW WOULD USERS BE AFFECTED?
PRO
➕ Fortran interface would no longer be unsafe
CON
➖ Unsafe Fortran calls might be removed
➖ Might require Fortran 95, which would make Fortran 77 users sad
NEUTRAL
✔️ If this breaks important code, we could make the HDF4 4.2 line a maintenance branch that gets critical bugfixes
Beta Was this translation helpful? Give feedback.
All reactions