History

Even better range checking on tempo, so we don't encounter overflows in tempo calculation code.

Christopher Snowhill committed 9 years ago

Commit 161758d1 parent a034af11 file · +1 −1Browse files

Unified · Split

src/it/itrender.c+1−1
@@ -4302,7 +4302,7 @@ static int process_tick(DUMB_IT_SIGRENDERER *sigrenderer) · 4301 unmodified lines
4302{4302{
4303 DUMB_IT_SIGDATA *sigdata = sigrenderer->sigdata;4303 DUMB_IT_SIGDATA *sigdata = sigrenderer->sigdata;
4304 4304
4305 if ( !sigrenderer->tempo ) // problematic, causes divide by zero below4305 if ( sigrenderer->tempo < 32 || sigrenderer->tempo > 255 ) // problematic
4306 return 1;4306 return 1;
4307 4307
4308 // Set note vol/freq to vol/freq set for each channel4308 // Set note vol/freq to vol/freq set for each channel

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t