diff options
Diffstat (limited to 'local/etc/portage/patches/All/vasnprintf.patch')
-rw-r--r-- | local/etc/portage/patches/All/vasnprintf.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/local/etc/portage/patches/All/vasnprintf.patch b/local/etc/portage/patches/All/vasnprintf.patch new file mode 100644 index 00000000..8347c1a4 --- /dev/null +++ b/local/etc/portage/patches/All/vasnprintf.patch @@ -0,0 +1,15 @@ +# With format string strictness, High Sierra also enforces that %n isn't used +# in dynamic format strings, but we should just disable its use on darwin in +# general. + +--- a/lib/vasnprintf.c ++++ b/lib/vasnprintf.c +@@ -4858,7 +4858,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t * + #endif + *fbp = dp->conversion; + #if USE_SNPRINTF +-# if !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) ++# if !defined(__APPLE__) && !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) + fbp[1] = '%'; + fbp[2] = 'n'; + fbp[3] = '\0'; |