From: Thor A. <th...@bi...> - 2011-02-22 20:54:17
|
Hi, Compiling sox on 32 bit architectures results, in my experience, in 4 byte size_t types, and as lsx_filelength() returns size_t, it overflows for files larger than 4GiB. I've written a patch which changes this to off_t as per [1]. It seemed like the right thing at the time, but now I'm not so sure, there might be some portability issues etc., maybe uint64_t would be better? Anyway here is what I've got so far, comments welcome. [1] http://www.gnu.org/s/libc/manual/html_node/File-Position-Primitive.html -- best regards Thor Andreassen |