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

Gavin <[email protected]> Thu, 18 Jun 2026 05:11:19 -0400 (EDT)
Newsgroups gmane.comp.gnu.octave.bugs
Message-ID <[email protected]>
Please use the bug tracker to post updates to a bug report.  The mailing list is intended as a read-only notification stream.  Info posted to this mailing list address won't appear in the tracker database where it is most useful.

URL:
  <https://savannah.gnu.org/bugs/?68457>

                 Summary: rsdec in the communications package can crash Octave
                   Group: GNU Octave
               Submitter: gavinerry
               Submitted: Thu 18 Jun 2026 09:11:14 AM UTC
                Category: Octave Package
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Segfault, Bus Error, etc.
                  Status: None
             Assigned to: None
         Originator Name:
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Unlocked
                 Release: 11.1.0
        Operating System: Microsoft Windows
           Fixed Release: None
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Thu 18 Jun 2026 09:11:14 AM UTC By: Gavin <gavinerry>
The following code:

pkg load communications

m=4;
n = 2^m -1;
k=11;

msg = gf ([1:k], m)
rs_poly = rsgenpoly(n,k,[],0);
code = rsenc (msg, n, k, rs_poly)
code ( 2 ) = 1;
message = rsdec ( code, n, k, rs_poly )


Causes Octave to crash when rsdec is called.  The process simply disappears
along with the GUI.  Occurs on v11.1.0 and 11.3.0









    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?68457>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCajO2NwAKCRCqLAuaBUf3
TlspAQCzpdyRjvgkE7jrTDE9YvrtjuPrkLjAflJm4rnBQ2t8nAD9EiFexApposCI
445yEJ+5VXXWuVVH56U+Rnw6Z/fHoAk=
=pmTz
-----END PGP SIGNATURE-----