We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
macOS
If output image is single-layer, transformOutY becomes nullptr:
transformOutY
nullptr
fheroes2/src/engine/image.cpp
Line 2263 in 618cfd9
But later transformOutY is subject to arithmetic operations, e.g. here:
Line 2295 in 618cfd9
which is undefined behavior - you only can add or subtract zero to/from nullptr, and that's all.
The same problem is probably present in other places where single-layer images are processed.
None needed.
Credits: Clang UB Sanitizer.
The text was updated successfully, but these errors were encountered:
Districh-ru
Successfully merging a pull request may close this issue.
Preliminary checks
Platform
macOS
Describe the bug
If output image is single-layer,
transformOutY
becomesnullptr
:fheroes2/src/engine/image.cpp
Line 2263 in 618cfd9
But later
transformOutY
is subject to arithmetic operations, e.g. here:fheroes2/src/engine/image.cpp
Line 2295 in 618cfd9
which is undefined behavior - you only can add or subtract zero to/from
nullptr
, and that's all.The same problem is probably present in other places where single-layer images are processed.
Save file
None needed.
Additional info
Credits: Clang UB Sanitizer.
The text was updated successfully, but these errors were encountered: