about summary refs log tree commit diff
path: root/sysdeps/ieee754/flt-32/e_coshf.c
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-06-21 11:08:38 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-06-27 13:32:48 -0300
commitc5579f3a713a631c4b5e2e3788ec715fbffd5af6 (patch)
treebbadeef670fa7faff5c482aa3bc88b3496a44d2a /sysdeps/ieee754/flt-32/e_coshf.c
parentc0f21e073d45670cb54811b07fce8e612a91f107 (diff)
downloadglibc-c5579f3a713a631c4b5e2e3788ec715fbffd5af6.tar.gz
glibc-c5579f3a713a631c4b5e2e3788ec715fbffd5af6.tar.xz
glibc-c5579f3a713a631c4b5e2e3788ec715fbffd5af6.zip
debug: Fix clang mq_open fortify wrapper (BZ 31917)
The mqueue.h fortify wrapper for clang added by c23107effbfe5300
is not fully correct, where correct 4 argument usage are not
being correctly handled.  For instance, while building socat 1.8
with a yocto clang based system shows:

  ./socat-1.8.0.0/xio-posixmq.c:119:8: error: 'mq_open' is unavailable: mq_open can be called either with 2 or 4 arguments
    119 |         mqd = mq_open(name, oflag, opt_mode, NULL);
        |               ^
  [...] /usr/include/bits/mqueue2.h:66:8: note: 'mq_open' has been explicitly marked unavailable here
     66 | __NTH (mq_open (const char *__name, int __oflag, mode_t mode,
        |        ^
  1 error generated.

The correct way to define the wrapper is to set invalid usage
with __fortify_clang_unavailable (for the case with 5 or more
arguments), followed by the expected ones.  This fix make mq_open
similar to current open wrappers.

[1] http://www.dest-unreach.org/socat/

Reported-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'sysdeps/ieee754/flt-32/e_coshf.c')
0 files changed, 0 insertions, 0 deletions