mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 17:16:38 +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
|
|
@ -391,6 +391,10 @@ AudioRegion::_read_at (const SourceList& /*srcs*/, framecnt_t limit,
|
||||||
<< " rops " << hex << rops << dec
|
<< " rops " << hex << rops << dec
|
||||||
<< endl;
|
<< endl;
|
||||||
|
|
||||||
|
if (cnt > 64 * 1024) {
|
||||||
|
abort ();
|
||||||
|
}
|
||||||
|
|
||||||
if (n_channels() == 0) {
|
if (n_channels() == 0) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue