jgaeddert / liquid-wlan

Open-source 802.11a WLAN PHY
http://liquidsdr.org
GNU General Public License v3.0
58 stars 16 forks source link

fec runtime errors #4

Open Romix-lab opened 4 years ago

Romix-lab commented 4 years ago

https://github.com/jgaeddert/liquid-wlan/blob/524a5fcce03580112f45f2a0faff6793c7244827/src/wlan_fec.c#L222 Guess, there is a segfault. Function wlan_update_viterbi27_blk reads twice per step enc_bits array, which is 2 8 _dec_msg_len bytes length. Also there is a segfault on https://github.com/jgaeddert/liquid-wlan/blob/524a5fcce03580112f45f2a0faff6793c7244827/src/wlan_fec.c#L223 I guess, the real nbits argument is equal 8 * _dec_msg_len.

jgaeddert commented 4 years ago

Yeah, valgrind is showing a bunch of memory errors. I'll dig into it a bit.