abort when cnt is too high
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 27 May 2011 23:51:32 +0000 (23:51 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 27 May 2011 23:51:32 +0000 (23:51 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9619 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/audioregion.cc

index 4beabab67a9bb6170499c82b64729ccc95662bf3..bb67268a4aea6aa95e28c4cb7c77f2de2839657e 100644 (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;