Skip to content

v6.0.1-14

Choose a tag to compare

@mattfidler mattfidler released this 08 Apr 23:51
f37361f
  • 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

Full Changelog: v6.0.1-13...v6.0.1-14