mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-21 12:30:06 +00:00
debug: Fix clang open fortify wrapper (BZ 31927)
The fcntl.h fortify wrapper for clang added by 86889e22db
missed the __fortify_clang_overload_arg and and also added the
mode argument for the __fortify_function_error_function function,
which leads clang to be able to correct resolve which overloaded
function it should emit.
Checked on x86_64-linux-gnu.
Reported-by: Khem Raj <raj.khem@gmail.com>
Tested-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
c5579f3a71
commit
4228baef1a
@ -62,7 +62,7 @@ open (const char *__path, int __oflag, ...)
|
||||
}
|
||||
#elif __fortify_use_clang
|
||||
__fortify_function_error_function __attribute_overloadable__ int
|
||||
open (const char *__path, int __oflag, mode_t __mode, ...)
|
||||
open (__fortify_clang_overload_arg (const char *, ,__path), int __oflag, ...)
|
||||
__fortify_clang_unavailable ("open can be called either with 2 or 3 arguments, not more");
|
||||
|
||||
__fortify_function __attribute_overloadable__ int
|
||||
|
Loading…
Reference in New Issue
Block a user