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

Division by 0 error in case of quick fade-in fade-out #127

Closed
SDLBugzilla opened this issue Feb 11, 2021 · 0 comments
Closed

Division by 0 error in case of quick fade-in fade-out #127

SDLBugzilla opened this issue Feb 11, 2021 · 0 comments

Comments

@SDLBugzilla
Copy link
Collaborator

SDLBugzilla commented Feb 11, 2021

This bug report was migrated from our old Bugzilla tracker.

Reported in version: 1.2.12
Reported for operating system, platform: Windows 7, x86

Comments on the original bug report:

On 2013-03-20 17:00:23 +0000, András Eisenberger wrote:

Steps to reproduce:

  1. Call Mix_FadeInMusic with ms smaller then ms_per_step (in my case on windows, ms was 50, ms_per_step was 249), which makes music->fade_steps = 0.
  2. Call Mix_FadeOutMusic before the next step happens, that will use this 0 as old_fade_steps in a division.

Result: crash.

@slouken slouken removed the bug label May 11, 2022
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

No branches or pull requests

2 participants