Skip to content

Conversation

@antond-weta
Copy link
Contributor

Adds VFX2022 and VFX2024 CI runners.
Fixes the build on VFX2022 (Centos 7).
Fixes a few deprecation warnings.
Fixes a potential crash writing out of bounds.

Signed-off-by: Anton Dukhovnikov <[email protected]>
else if ( wl > 780 )
break;

_cmf[i]._wl = wl;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know what this is doing, but I can see how previously we would change _wl value before all the checks, where is now we apply it only if checks are passed. I assume that is intentional and fixes some problem?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The original code first reads the wavelength into the next item of the array and then checks if it is in bounds. It can crash if the file contains more spectral samples than the tool expects (81). There are actually other places with the same bug, but this one does crash periodically as the cmd file does contain more samples.

@antond-weta antond-weta merged commit 4ac227d into AcademySoftwareFoundation:master Apr 19, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants