Open quarium opened 7 years ago
@quarium Could you provide some details: target platform, toolchain, build options, valgrind settings etc. I couldn't reproduce it on x86_64 with gcc 5.4 using either sse2 or ssse3.
Yes sorry, x86_64 with gcc (Debian 6.3.0-18) 6.3.0 20170516, valgrind-3.12.0.SVN and ssse3.
BTW Could you try d11b0b2
No more warnings with this commit
OK. In fact, libdvbcsa can actually process uninitialized data if, for example, packet size is less than 184, or the batch is less than 128 packets (try test/testbitslice). In this case it gets garbage, processes garbage but doesn't copy the garbage to the output buffers. Initializing the internal buffer with memset() will have (a very small) performance impact. I have to run benchmarks on weakest targets (ARM) to see if passing valgrind checks worth the performance drop. So, it's not really an issue.
Thanks for testing.