GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — async-profiler/src/chk.cpp at jonoffcpu-dev · jonoffcpu/async-profiler Expand file tree/ Copy pathchk.cppMore file actions 32 lines (24 loc) · 707 Bytes / Copy pathchk.cppFile metadata and controls32 lines (24 loc) · 707 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 /* * Copyright The async-profiler authors * SPDX-License-Identifier: Apache-2.0 */ #ifndef __clang__ #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include "asprof.h" // libgcc refers to __sprintf_chk, but there is no such symbol in musl libc. // Export a weak symbol in order to make profiler library work both with glibc and musl. extern "C" WEAK DLLEXPORT int __sprintf_chk(char* s, int flag, size_t slen, const char* format, ...) { va_list args; va_start(args, format); int ret = vsnprintf(s, slen, format, args); va_end(args); if (ret >= slen) { fprintf(stderr, "__sprintf_chk failed\n"); abort(); } return ret; } #endif // __clang__ |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |