abort when cnt is too high

git-svn-id: svn://localhost/ardour2/branches/3.0@9619 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2011-05-27 23:51:32 +00:00
parent a699df37ad
commit 06da4278db

View file

@ -390,6 +390,10 @@ AudioRegion::_read_at (const SourceList& /*srcs*/, framecnt_t limit,
<< " chan " << chan_n
<< " rops " << hex << rops << dec
<< endl;
if (cnt > 64 * 1024) {
abort ();
}
if (n_channels() == 0) {
return 0;