[bug #68457] rsdec in the communications package can crash Octave

"Dmitri A. Sergatskov" <[email protected]> Tue, 23 Jun 2026 10:58:14 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
--===============7240690321264501643==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

UGxlYXNlIHVzZSB0aGUgYnVnIHRyYWNrZXIgdG8gcG9zdCB1cGRhdGVzIHRvIGEgYnVnIHJlcG9y
dC4gIFRoZSBtYWlsaW5nIGxpc3QgaXMgaW50ZW5kZWQgYXMgYSByZWFkLW9ubHkgbm90aWZpY2F0
aW9uIHN0cmVhbS4gIEluZm8gcG9zdGVkIHRvIHRoaXMgbWFpbGluZyBsaXN0IGFkZHJlc3Mgd29u
J3QgYXBwZWFyIGluIHRoZSB0cmFja2VyIGRhdGFiYXNlIHdoZXJlIGl0IGlzIG1vc3QgdXNlZnVs
LgoK

--===============7240690321264501643==
Content-Type: MULTIPART/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; BOUNDARY="8323329-424238335-1782226694=:2043976"
Content-Disposition: inline

--8323329-424238335-1782226694=:2043976
Content-Type: TEXT/plain; CHARSET=utf-8
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Disposition: inline

Follow-up Comment #2, bug #68457 (group octave):=0A=0AThe CSET (file bug684=
57_rsdec_20260623_100.cset).=0AThe package generated with that cset=0A(file=
 communications-1.2.7_rsdec_fix.tar.gz)=0A=0A=0AFixed test scripts:=0A=0A  =
                                                      total time (CPU |=0AC=
LOCK)  [   0.7s |    0.9s]=0ASummary:=0A=0A  PASS                          =
    602=0A  FAIL                                0=0A=0ASee the file /home/d=
mitri/Downloads/fntests.log for additional details.=0A=0A19 (of 123) .m fil=
es have no tests.=0A=0APlease help improve Octave by contributing tests for=
 these files=0A(see the list in the file /home/dmitri/Downloads/fntests.log=
).=0A=0Aoctave:7> pkg load communications=0Aoctave:8>     m=3D4;=0A    n =
=3D 2^m -1;=0A    k=3D11;=0A=0A    msg =3D gf ([1:k], m)=0A    rs_poly =3D =
rsgenpoly(n,k,[],0);=0A    code =3D rsenc (msg, n, k, rs_poly)=0A    code (=
 2 ) =3D 1;=0A    message =3D rsdec ( code, n, k, rs_poly )=0A=0Amsg =3D=0A=
GF(2^4) array. Primitive Polynomial =3D D^4+D+1 (decimal 19)=0A=0AArray ele=
ments =3D =0A=0A    1    2    3    4    5    6    7    8    9   10   11=0A=
=0Acode =3D=0AGF(2^4) array. Primitive Polynomial =3D D^4+D+1 (decimal 19)=
=0A=0AArray elements =3D =0A=0A    1    2    3    4    5    6    7    8    =
9   10   11    3    3   12   12=0A=0Amessage =3D=0AGF(2^4) array. Primitive=
 Polynomial =3D D^4+D+1 (decimal 19)=0A=0AArray elements =3D =0A=0A    1   =
 2    3    4    5    6    7    8    9   10   11=0A=0Aoctave:16> =0A=0A=0ADm=
itri.=0A-- =0A=0A=0A(file #58742, file #58743)=0A=0A    ___________________=
____________________________________=0A=0AAdditional Item Attachment:=0A=0A=
Name: bug68457_rsdec_20260623_100.cset Size: 32KiB=0A=0A<https://file.savan=
nah.gnu.org/file/bug68457_rsdec_20260623_100.cset?file_id=3D58742>=0A=0ANam=
e: communications-1.2.7_rsdec_fix.tar.gz Size: 343KiB=0A=0A<https://file.sa=
vannah.gnu.org/file/communications-1.2.7_rsdec_fix.tar.gz?file_id=3D58743>=
=0A=0A=0A    AGPL NOTICE=0A=0AThese attachments are served by Savane. You c=
an download the corresponding=0Asource code of Savane at=0Ahttps://savannah=
.gnu.org/source/savane-c36938be85ff6c1b727bc7dd7fd30e48f9142870.tar.gz=0A=
=0A=0A    _______________________________________________________=0A=0ARepl=
y to this item at:=0A=0A  <https://savannah.gnu.org/bugs/?68457>=0A=0A_____=
__________________________________________=0AMessage sent via Savannah=0Aht=
tps://savannah.gnu.org/=0A
--8323329-424238335-1782226694=:2043976
Content-Type: APPLICATION/pgp-signature; name=signature.asc

-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCajqfBgAKCRCqLAuaBUf3
TmjCAP9Ag5ln8ymZUHlKkJcYjaSL92n/cMIzvetmopA/XJkZTAD9HAR4TX+M2FzH
y/gY6QALcNItlDI4bTMuhSRRvDV3SQM=
=U9L4
-----END PGP SIGNATURE-----

--8323329-424238335-1782226694=:2043976--



--===============7240690321264501643==--