Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > Bug Reports & Feature Requests > Out of bounds TriggerNote with absolute arps Owner: rainwarrior New post
Page 1 of 1 Sort:  
Out of bounds TriggerNote with absolute arps Posted: 2012-08-08 23:37  (Last Edited: 2012-08-08 23:39) Reply | Quote
rainwarrior

Avatar

Member for: 4150 days
Location: Canada
Status: Offline

#37992
[quote=ChannelHandler.cpp line 633]m_Period = TriggerNote(m_iNote + Value);[/quote]

This can generate notes above 95, causing an assert in TriggerNote (line 229) in debug. Not sure what consequences this has in release, but since it's an assert I presume it's not expected to happen. Should probably be clamped to 0-95?

(This is using the current source repository, 8/08/2012)

Posted: 2012-08-09 00:16 Reply | Quote
jsr
Administrator

Avatar

Member for: 5924 days
Location: Sweden
Status: Offline

#37993
Good find. It could potentially cause a crash since it's used as an index to a pointer, so I've checked in a fix.

_______________________
Programmer and developer
Page 1 of 1 Sort: