at 18.09-beta 15 lines 849 B view raw
1With format string strictness, High Sierra also enforces that %n isn't used 2in dynamic format strings, but we should just disable its use on darwin in 3general. 4 5--- a/lib/vasnprintf.c 2017-06-22 15:19:15.000000000 -0700 6+++ b/lib/vasnprintf.c 2017-06-22 15:20:20.000000000 -0700 7@@ -4869,7 +4869,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t * 8 #endif 9 *fbp = dp->conversion; 10 #if USE_SNPRINTF 11-# if !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) 12+# if !defined(__APPLE__) && !(((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3)) && !defined __UCLIBC__) || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) 13 fbp[1] = '%'; 14 fbp[2] = 'n'; 15 fbp[3] = '\0';