diff options
-rw-r--r-- | Android.bp | 9 | ||||
-rw-r--r-- | METADATA | 4 | ||||
-rw-r--r-- | NEWS.md | 9 | ||||
-rw-r--r-- | include/status.h | 4 | ||||
-rw-r--r-- | include/vector.h | 4 | ||||
-rw-r--r-- | include/version.h | 2 | ||||
-rw-r--r-- | src/vector.c | 2 |
7 files changed, 19 insertions, 15 deletions
@@ -24,10 +24,7 @@ cc_defaults { "-DDC_ENABLED=0", "-DBC_ENABLE_EXTRA_MATH=0", "-DBC_ENABLE_HISTORY=0", - "-DBC_ENABLE_LIBRARY=0", - "-DBC_ENABLE_LONG_OPTIONS=1", "-DBC_ENABLE_NLS=0", - "-DBC_ENABLE_SIGNALS=1", "-Os", ], generated_headers: ["bc-version.h"], @@ -39,12 +36,6 @@ cc_defaults { ":bc-lib.c", ], stl: "none", - target: { - darwin: { - // TODO: temporary workaround for https://github.com/gavinhoward/bc/issues/35 - cflags: ["-D_FORTIFY_SOURCE=0"], - }, - }, } genrule { @@ -5,11 +5,11 @@ third_party { type: GIT value: "https://github.com/gavinhoward/bc" } - version: "5.0.0" + version: "5.0.1" license_type: NOTICE last_upgrade_date { year: 2021 month: 8 - day: 10 + day: 13 } } @@ -1,5 +1,14 @@ # News +## 5.0.1 + +This is a production release with two fixes: + +* Fix for the build on Mac OSX. +* Fix for the build on Android. + +Users that do not use those platforms do ***NOT*** need to update. + ## 5.0.0 This is a major production release with several changes: diff --git a/include/status.h b/include/status.h index 781248ad..662f2b89 100644 --- a/include/status.h +++ b/include/status.h @@ -53,6 +53,10 @@ #define DC_ENABLED (1) #endif // DC_ENABLED +#ifndef BC_ENABLE_LIBRARY +#define BC_ENABLE_LIBRARY (0) +#endif // BC_ENABLE_LIBRARY + // This is error checking for fuzz builds. #if BC_ENABLE_AFL #ifndef __AFL_HAVE_MANUAL_CONTROL diff --git a/include/vector.h b/include/vector.h index 8f7cbbcc..c35d22c9 100644 --- a/include/vector.h +++ b/include/vector.h @@ -441,7 +441,7 @@ void bc_slabvec_print(BcVec *v, const char *func); * contain @a s. * @param s The source string. */ -#define strcpy(d, l, s) strcpy(d, s) +#define bc_strcpy(d, l, s) strcpy(d, s) #else // _WIN32 @@ -452,7 +452,7 @@ void bc_slabvec_print(BcVec *v, const char *func); * contain @a s. * @param s The source string. */ -#define strcpy(d, l, s) strcpy_s(d, l, s) +#define bc_strcpy(d, l, s) strcpy_s(d, l, s) #endif // _WIN32 diff --git a/include/version.h b/include/version.h index 5127c28e..946dc67b 100644 --- a/include/version.h +++ b/include/version.h @@ -37,6 +37,6 @@ #define BC_VERSION_H /// The current version. -#define VERSION 5.0.0 +#define VERSION 5.0.1 #endif // BC_VERSION_H diff --git a/src/vector.c b/src/vector.c index 1cd90f72..ebc2e76c 100644 --- a/src/vector.c +++ b/src/vector.c @@ -461,7 +461,7 @@ static char* bc_slab_add(BcSlab *s, const char *str, size_t len) { ptr = (char*) (s->s + s->len); - strcpy(ptr, len, str); + bc_strcpy(ptr, len, str); s->len += len; |