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
43024302 {
43034303 DUMB_IT_SIGDATA *sigdata = sigrenderer->sigdata;
43044304
4305− if ( !sigrenderer->tempo ) // problematic, causes divide by zero below
4305+ if ( sigrenderer->tempo < 32 || sigrenderer->tempo > 255 ) // problematic
43064306 return 1;
43074307
43084308 // 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