mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
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:
parent
a699df37ad
commit
06da4278db
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue