debug issue #5221 -- possible mem corruption
authorRobin Gareus <robin@gareus.org>
Sun, 23 Dec 2012 11:58:08 +0000 (11:58 +0000)
committerRobin Gareus <robin@gareus.org>
Sun, 23 Dec 2012 11:58:08 +0000 (11:58 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@13714 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/audio_diskstream.cc

index 6e2c8a570d7b51eb132e0ed30375eb4b6b4b3288..d8f2ba9d746072d9423cacaac0dee5ebd9b4611f 100644 (file)
@@ -618,6 +618,8 @@ AudioDiskstream::process (framepos_t transport_frame, pframes_t nframes, framecn
                                           as our current_playback_buffer.
                                        */
 
+                                       assert(wrap_buffer_size >= chaninfo->playback_vector.len[0] + chaninfo->playback_vector.len[1]);
+
                                        /* Copy buf[0] from playback_buf */
                                        memcpy ((char *) chaninfo->playback_wrap_buffer,
                                                        chaninfo->playback_vector.buf[0],