[ 
https://issues.apache.org/jira/browse/NUMBERS-210?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Alex Herbert resolved NUMBERS-210.
----------------------------------
    Fix Version/s: 1.4
         Assignee: Alex Herbert
       Resolution: Fixed

Fixed in commit:

55b5539c69d00b49d666020d483ead2c93e4a0e2

Added checks that the tolerances are finite positive; the function evaluation 
is not NaN; and the initial [min, max] bracket contains finite values.

> BrentSolver has no validation of convergence accuracy or evaluated function 
> value leading to possible non-convergence
> ---------------------------------------------------------------------------------------------------------------------
>
>                 Key: NUMBERS-210
>                 URL: https://issues.apache.org/jira/browse/NUMBERS-210
>             Project: Commons Numbers
>          Issue Type: Bug
>          Components: rootfinder
>    Affects Versions: 1.3
>            Reporter: Alex Herbert
>            Assignee: Alex Herbert
>            Priority: Minor
>             Fix For: 1.4
>
>
> The BrentSolver does not validate that the relative, absolute or function 
> value accuracy are positive and finite. This can lead to use of negative or 
> NaN tolerance and no possible convergence.
> The evaluated function value may be computed as NaN. This invalidates any 
> further convergence computation.
> Issue identified using a security scan.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to