commit 8bd80d61285b842845ed2fc658ef4edbaf510421
parent 70f003a188d55e51a16e4b6ce97a16b8f45e8c19
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Thu, 15 Nov 2018 16:05:37 +0100
Merge branch 'release_0.8.1'
Diffstat:
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
@@ -34,6 +34,10 @@ variable to the directory that contains the `boost` include directory.
## Release notes
+### Version 0.8.1
+
+- Fix a possible invalid memory read on proxy allocator clear.
+
### Version 0.8
- Add the `ssp_ran_sphere_cap_uniform[_local][_float]` random variates that
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
@@ -72,7 +72,7 @@ rcmake_append_runtime_dirs(_runtime_dirs RSys ${Boost_LIBRARY_DIRS})
################################################################################
set(VERSION_MAJOR 0)
set(VERSION_MINOR 8)
-set(VERSION_PATCH 0)
+set(VERSION_PATCH 1)
set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
set(SSP_FILES_SRC
diff --git a/src/ssp_rng_proxy.c b/src/ssp_rng_proxy.c
@@ -332,7 +332,7 @@ rng_proxy_clear(struct ssp_rng_proxy* proxy)
FOR_EACH(ibucket, 0, sa_size(proxy->pools)) {
ASSERT(proxy->buckets[ibucket] == 0); /* No bucket RNG should be created */
- SSP(rng_ref_put(proxy->pools[ibucket]));
+ if(proxy->pools[ibucket]) SSP(rng_ref_put(proxy->pools[ibucket]));
rng_state_cache_release(proxy->states + ibucket);
}
sa_clear(proxy->buckets);