From 60fc47152d69cee4a4bf34d98d844310e68605fe Mon Sep 17 00:00:00 2001 From: Phillip Whelan Date: Wed, 20 Sep 2023 21:51:03 -0700 Subject: [PATCH] lib: monkey: upgrade to v1.7.2 (#7951) Signed-off-by: Phillip Whelan --- lib/monkey/CMakeLists.txt | 2 +- lib/monkey/mk_core/external/winpthreads.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/monkey/CMakeLists.txt b/lib/monkey/CMakeLists.txt index 6211abaaf5a..2d43835b70f 100644 --- a/lib/monkey/CMakeLists.txt +++ b/lib/monkey/CMakeLists.txt @@ -23,7 +23,7 @@ endif() # Monkey Version set(MK_VERSION_MAJOR 1) set(MK_VERSION_MINOR 7) -set(MK_VERSION_PATCH 1) +set(MK_VERSION_PATCH 2) set(MK_VERSION_STR "${MK_VERSION_MAJOR}.${MK_VERSION_MINOR}.${MK_VERSION_PATCH}") # Output paths diff --git a/lib/monkey/mk_core/external/winpthreads.c b/lib/monkey/mk_core/external/winpthreads.c index abf55006727..db495198977 100644 --- a/lib/monkey/mk_core/external/winpthreads.c +++ b/lib/monkey/mk_core/external/winpthreads.c @@ -1098,7 +1098,7 @@ int pthread_setspecific(pthread_key_t key, const void *value) { pthread_t t = pthread_self(); - if (key > t->keymax) + if (key >= t->keymax) { int keymax = (key + 1) * 2; void **kv = (void**)realloc(t->keyval, keymax * sizeof(void *));