Intended to silence warning from the clang static analyzer.
2018-12-26 Niels Möller <nisse@lysator.liu.se>
+ * eccdata.c (ecc_pippenger_precompute): Check that table size is
+ at least 2. Intended to silence warning from the clang static
+ analyzer.
+
* configure.ac: Bump package version to 3.5.
(LIBNETTLE_MAJOR): Bump major number, now 7.
(LIBHOGWEED_MAJOR): Bump major number, now 5.
unsigned M = ecc_table_size (ecc->bit_size, k, c);
unsigned i, j;
+ if (M < 2)
+ {
+ fprintf (stderr, "Invalid parameters, implies M = %u\n", M);
+ exit (EXIT_FAILURE);
+ }
+
if (M == ecc_table_size (ecc->bit_size, k-1, c))
fprintf(stderr,
"warn: Parameters k = %u, c = %d are suboptimal, could use smaller k\n",