On Sat, Aug 9, 2014 at 11:52 PM, Bruce Perens <[email protected]> wrote:
> David,
>
> golay23_decode() overruns a table once in a while because the unpacked
> bit array has garbage in it. Some value is greater than 1 and the input
> code word ends up negative. I ran Valgrind to see if it was a problem in
> my code, and didn't see any wild memory references, but I do get
> uninitialized data as input to a conditional switch complaints as
> detailed in my last email.

Greetings,

I have run into this same issue few days ago while using the
freedv_api. On one computer running 64 bit linux and gcc 4.8 I didn't
have this issue. On another one running 32 bit linux and gcc 4.9 it
happened every time after running the application for a few seconds.
Perhaps it also depends on optimization level.

I worked around it by using calloc instead of malloc for allocating
tx_bits and rx_bits, though it seems that the problem is somewhere
else.

Alex

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Freetel-codec2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freetel-codec2

Reply via email to