Skip to content

Conversation

@olebole
Copy link
Member

@olebole olebole commented Dec 31, 2025

There were two problems: First, IrafGWcs.set(arg) is sometimes called with an empty argument instead of None, which then produced an Exception. Then, the addition of np.int16 and int now results in an np.int16, which sill cause an overflow in GkiBuffer.getNextCode().

Together with #188, this may fix #181; however I can't reproduce this completely.

@olebole olebole changed the title Fix some graphics problems Fix some imexam cursor problems Dec 31, 2025
Sometimes, the argument is just empty, which caused a crash before.
The arglen (originally 16 bit) may be added to the intruction pointer,
and the result may exceed 16 bit.
@olebole olebole merged commit bd1d553 into main Jan 8, 2026
5 checks passed
@olebole olebole deleted the graphics branch January 8, 2026 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

PyPAF imexamine issues

2 participants