Segfaults in EvalPoly & EvalChebyshev

Hi together,

I am doing some evaluations with polynomials and recently encountered two segfaults.
The first occurred when I called EvalChebyshevFunction with degree zero and the second occurred when I called EvalPoly with a vector containing only one element.

Of course, I know that these calls make no sense as we would have polynomials of degree zero equal to the coefficient that is not encrypted, so would have to be encrypted.
However, segfaults are always quite difficult to find and debug, so I think exceptions would help to find such tiny programming errors.

Thanks. I just created an issue for this: SegFaults are thrown for invalid parameters to EvalPoly and EvalChebyshev · Issue #558 · openfheorg/openfhe-development · GitHub It will be fixed in v1.1.2

1 Like