View on GitHub

IRAF Community Distribution

IRAF maintained by the community

Home | Installation | Packages | X11IRAF | PyRAF | Forum ↗

iraf-v216 · Code · Issues (50) · Pull requests (81)

iraf.net pull request #95

Fix pointer types for XINT * arguments

closed closed olebole wants to merge 3 commits


olebole commented on 2017-09-03

Sometimes, a formal function argument is an XINT * (aka long int *, pointer to 64bit on 64-bit IRAF), but the type of the actual argument is int * (pointer to 32 bit) only. Just (implicitly) changing pointer type destroys the alignment and may cause an illegal access. And on big endian, even the wrong value is transferred.

This PR fixes this on the places we found:

Commits


Closed on 2017-09-08