szechyjs / dsd

Digital Speech Decoder
Other
680 stars 267 forks source link

Initialize last_dibit variable #119

Closed argilo closed 2 years ago

argilo commented 2 years ago

A segfault can occur because last_dibit is uninitialized and used as an index in a lookup table (in estimate_symbol).

This was reported in https://github.com/argilo/gr-dsd/pull/15 and fixed in https://github.com/argilo/gr-dsd/pull/19. Since the fix works well in gr-dsd, I'm contributing the fix upstream.