Closed skirpichev closed 2 months ago
:warning: Please install the to ensure uploads and comments are reliably processed by Codecov.
Attention: Patch coverage is 25.00000%
with 3 lines
in your changes missing coverage. Please review.
Project coverage is 85.59%. Comparing base (
224745b
) to head (dfaae94
). Report is 46 commits behind head on master.
Files with missing lines | Patch % | Lines |
---|---|---|
src/gmpy2.c | 25.00% | 3 Missing :warning: |
:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
GMP_ERROR_DIVISION_BY_ZERO and GMP_ERROR_SQRT_OF_NEGATIVE, in principle, shouldn't be triggered by some code in the gmpy2 codebase. Maybe I should check only GMP_ERROR_MPZ_OVERFLOW?
GMP_ERROR_DIVISION_BY_ZERO and GMP_ERROR_SQRT_OF_NEGATIVE, in principle, shouldn't be triggered by some code in the gmpy2 codebase. Maybe I should check only GMP_ERROR_MPZ_OVERFLOW?
While GMP_ERROR_DIVISION_BY_ZERO and GMP_ERROR_SQRT_OF_NEGATIVE shouldn't occur, I think it's fine to catch all the errors.
Since 6.3.0 some memory errors in mpz/realloc.c trigger SIGFPE exception. I think it's an upstream bug: helpful message should be emitted instead.
This patch install SIGFPE handler, that does this.
Closes #497