ref: 161758dd0a5d7bd0e07fdc596db4e24f1ca107ac
parent: a034af18c16e6688373c4c910d97a7dc0342c8a7
author: Christopher Snowhill <kode54@gmail.com>
date: Tue Sep 12 12:31:33 EDT 2017
Even better range checking on tempo, so we don't encounter overflows in tempo calculation code.
--- a/src/it/itrender.c
+++ b/src/it/itrender.c
@@ -4302,7 +4302,7 @@
{
DUMB_IT_SIGDATA *sigdata = sigrenderer->sigdata;
- if ( !sigrenderer->tempo ) // problematic, causes divide by zero below
+ if ( sigrenderer->tempo < 32 || sigrenderer->tempo > 255 ) // problematic
return 1;
// Set note vol/freq to vol/freq set for each channel