GNU Scientific Library - Bugs: bug #60371, Interpolation domain error handling
You are not allowed to post comments on this tracker with your current authentication level.
bug #60371: Interpolation domain error handling
Submitter: | Patrick Alken <psa> | ||
Submitted: | Sun 11 Apr 2021 03:59:07 AM UTC | ||
Category: | Runtime error | Severity: | 3 - Normal |
Operating System: | Status: | None | |
Assigned to: | None | Open/Closed: | Open |
Release: |
Attached Files
file #51242: 0001-Fix-error-handling-in-2D-interpolation-functions.patch added by psa (1KiB - text/x-patch)
Depends on the following items: None found
Items that depend on this one: None found
Carbon-Copy List
Follow 2 latest changes.
Date | Changed by | Updated Field | Previous Value | => | Replaced by |
---|---|---|---|---|---|
2021-04-11 | psa | Attached File | - | ![]() |
Added bug_interp2d_domain_error_handling.c, #51241 |
Attached File | - | ![]() |
Added 0001-Fix-error-handling-in-2D-interpolation-functions.patch, #51242 |
reported by Damien Lebrun-Grandie dalg24 =at= gmail =dot= com
With the current version of GSL (without the patch), the user do not get a chance to check the return status of gsl_interp2d_eval_e() because GSL_ERROR() gets called direclty instead of returning an error code as advertised in the documentation.
With the changes I propose, the domain error will still be caught by macro DISCARD_STATUS() that checks the return code of gsl_interp2d_eval_e() in gsl_interp2d_eval() but the intended behavior for gsl_interp2d_eval_e() will be achieved. The only downside I see with this patch is that the user now gets an out-of-domain error but he is not told anymore whether the error was caused by the x or the y coordinate.