Package: libsamplerate0 Version: 0.1.7-2 Severity: normal
Trying to resample an array of length 199030 to 1000 with src_simple() causes a crash. For different input or output lengths, both larger and smaller, it is likely to work, only some values cause the crash. Below is an example C++ program that crashes, when I run it I get this output: http://pastebin.org/6262 Here is the output when ran with valgrind: http://pastebin.com/f5a7201e9 #include <iostream> #include <vector> #include "samplerate.h" typedef std::vector<float> float_vec; int main() { float_vec in(199030); // initializes to zeros float_vec buf(1000); const double ratio = (double)buf.size()/in.size(); SRC_DATA x = {&in[0], &buf[0], in.size(), buf.size(), 0,0,0, ratio}; const int error = src_simple(&x, 2, 1); if (error) { std::cout << src_strerror(error) << "\n"; return 1; } return 0; } -- System Information: Debian Release: 5.0.2 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-2-amd64 (SMP w/2 CPU cores) Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/bash Versions of packages libsamplerate0 depends on: ii libc6 2.7-18 GNU C Library: Shared libraries libsamplerate0 recommends no packages. libsamplerate0 suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

