On 20 August 2012 13:33, Roman Bumerl-Lexa <ro...@bumerl.at> wrote: > 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
Hi Roman, thank you for the fix. I have applied it now to the development tree. Could you check if everything is right now? Carnë ------------------------------------------------------------------------------ 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