-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use local xorder instead of s->xorder #58
Use local xorder instead of s->xorder #58
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #58 +/- ##
=======================================
Coverage 85.71% 85.71%
=======================================
Files 1 1
Lines 7 7
=======================================
Hits 6 6
Misses 1 1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CC: @perrygreenfield - the only one who might know the IRAF code |
Can we do a Also makes me wonder about the remaining |
like where? |
stsci.stimage/src/surface/fit.c Line 199 in 589bba5
stsci.stimage/src/surface/fit.c Line 214 in 589bba5
|
Yay!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thank you^^ |
(I cannot merge but I want to!) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Risky but seems to work. Risky: because we still don't know what should be but it seems that not using xorder
is causing buffer overruns
That is a safety feature |
This addresses the >10 year old failure in
test_geomap
.The local
xorder
variable is modified by a switch statement at the end of eachyorder
iteration, but the nesteds->xorder
loop never usedxorder
, so it would calculate avindex
that exceeded the upper bounds of thevzp
array.