When using the golay decoder (an error correcting decoder), and there are more than the three allowed erroneous bits, the function crashes instead of setting the error flag.
Golaytestcase.m: %octave % Testcase for crashing egolaydec.m x=[1 0 1 0 1 0 1 0 1 0 1 0 ]; y=egolayenc(x); % create the encoded vector. y(17:2:23)=0; % set four errors in this vector. [res,err]=egolaydec (y) % try to decode this erroneous vector. I contacted the author Annamalai, Muthiah <muthiah.annama...@mavs.uta.edu> and he wrote : “Roman, I will not be able to debug the algorithm. But the error can be fixed by inserting the line, E=[S, zeros(1,12)]; just after the statement done = 0; You may also submit a patch to the Octave project. I won't be able to do this. Thanks, -Muthu“ I have inserted the line and it works now fine. I have tested it also for some other bitvectors containing more than the four errors used in my test case. Can anyone please fix this in the repository. Roman
egolaydec.m
Description: Binary data
------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________ Octave-dev mailing list Octave-dev@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/octave-dev