#212 Error in Read Solomon and BCH decoders


while studying the code of the Reed-Solomon decoder, I came across a bug:
in line 208 of http://itpp.sourceforge.net/current/reedsolomon_8cpp_source.html the syndrome should be calculated from variable cx and not rx. The syndrome of the received block rx has been already calculated in l. 142 and rx has never been changed ever since. But in l. 204 cx was calculated as the corrected (rx + error ex) block and the following check of l. 208 should check if the corrected one is a valid code word - and that is on cx, and not rx.


  • Bogdan Cristea

    Bogdan Cristea - 2012-08-19

    Thanks to Stephan Ludwig for code corrections.

  • Bogdan Cristea

    Bogdan Cristea - 2013-05-23
    • status: open --> accepted
  • Bogdan Cristea

    Bogdan Cristea - 2013-05-24
    • status: accepted --> closed

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks