v6.0.1-14
-
As requested by CRAN, fix gcc-asan and valgrind
-
Make package thread-safe: convert global state to thread_local, remove static from 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’s INTEGER() returning int*.
-
Fix undefined behavior: add virtual destructor to EvalBase so deleting derived callback objects through a base pointer is well-defined.
-
Fix memory leak: validate n and nzm before allocating callback objects, preventing a leak when Rf_error is 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.
What's Changed
- Fix warnings by @billdenney in #4
- Add coverage tests by @billdenney in #5
- Scilab fortran sync by @billdenney in #6
Full Changelog: v6.0.1-13...v6.0.1-14