gf: Fix gf_irreduciblep() for small-degree polynomials.
authorMark Wooding <mdw@distorted.org.uk>
Sat, 4 Feb 2006 16:19:03 +0000 (16:19 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 4 Feb 2006 16:19:03 +0000 (16:19 +0000)
commit00f096fc078d1aa06927901d888261d4d13de495
treea38fc9f3b1a8a18661251903d911e37ff3a89e3f
parentd31f4a790046b7a6ebd1099dd474908c50b947b9
gf: Fix gf_irreduciblep() for small-degree polynomials.

Fix division-by-zero error for argument zero, and segfaults for
arguments with degree less than 2 due to skipping the main loop.  Handle
these as a special case.
gf-arith.c
tests/gf