bugGNU Octave - Bugs: bug #55426, [octave forge] (communications)...

 
 

bug #55426: [octave forge] (communications) rsdec crashes when fcr>k and block contains errors

Submitter:  None
Submitted:  Wed 09 Jan 2019 09:50:26 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  None Assigned to:  None
Originator Name:  Tomer Ben Chen Originator Email:  -email is unavailable-
Open/Closed:  * Open Release:  * 4.4.1
Operating System:  * Any Fixed Release:  None
Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 09 Jan 2019 09:50:26 AM UTC, original submission:  

The following code crashes on both Linux and Windows when hitting any fcr > 249:

k=249;
for fcr=1:255
  % get generator polynom
  g=rsgenpoly(255,k,285,fcr);
  % reed-solomon encode
  e=rsenc(gf([zeros(1,k-1) 1],8,285), 255, k, g);
  % single error
  e(1)=e(1)+1;
  % attempt to decode
  d=rsdec(e,255,k,g);
  fprintf("success with fcr=%d\n",fcr);
end


Checked also with k=251, it again crashes on fcr>251.
Also checked when not inserting error (commenting the line "e(1)=e(1)+1"), then it doesn't crash for any fcr in the range (1:255).





Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #45911:  test_rsdec.m added by None (285B - application/octet-stream)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-01-09 mtmiller Summaryrsdec crashes when fcr>k and block contains errors [octave forge] (communications) rsdec crashes when fcr>k and block contains errors
    2019-01-09 None Attached File- Added test_rsdec.m, #45911

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code