Skip to content
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

ImagingEffectSpread: 0 division error #4906

Closed
ghost opened this issue Sep 7, 2020 · 1 comment · Fixed by #4908
Closed

ImagingEffectSpread: 0 division error #4906

ghost opened this issue Sep 7, 2020 · 1 comment · Fixed by #4908
Labels
Bug Any unexpected behavior, until confirmed feature.

Comments

@ghost
Copy link

ghost commented Sep 7, 2020

int xx = x + (rand() % distance) - distance/2;\

distance value is not checked in this function. So if distance value is 0 then happen 0 division error.
Need check this variable value before expression.

@radarhere radarhere changed the title ImageEffectSpread: 0 division error ImagingEffectSpread: 0 division error Sep 8, 2020
@radarhere radarhere added the Bug Any unexpected behavior, until confirmed feature. label Sep 8, 2020
@radarhere
Copy link
Member

Thanks for reporting this. I've created PR #4908 to fix it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Any unexpected behavior, until confirmed feature.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant