Changelog
Source:NEWS.md
n1qn1 6.0.1-12.9000 (development version)
Make package thread-safe: convert global state to
thread_local, removestaticfrom local variables in Fortran-translated C code, add integer overflow guards, and fix memory leaks in the R callback wrappers.Review all C integer types; confirmed existing types are correct given Fortran ABI constraints (
int*required for Fortran INTEGER) and R’sINTEGER()returningint*.Fix undefined behavior: add virtual destructor to
EvalBaseso deleting derived callback objects through a base pointer is well-defined.Fix memory leak: validate
nandnzmbefore allocating callback objects, preventing a leak whenRf_erroris called on bad inputs.Fix
restart=TRUE: typo caused mode to remain 2 instead of being set to 3.Fix
assign=TRUE: wrong field name meant the compressed Hessian was never stored in the supplied environment.Add tests for restart, assign, single-variable optimization, repeated calls, and input error conditions.
Make package thread-safe: convert global state to
thread_local, removestaticfrom local variables in Fortran-translated C code, add integer overflow guards, and fix memory leaks in the R callback wrappers.Review all C integer types; confirmed existing types are correct given Fortran ABI constraints (
int*required for Fortran INTEGER) and R’sINTEGER()returningint*.