freebsd-src/contrib
Dimitry Andric f08bf5a3ac Merge commit 0f329e0246d1 from llvm-project (by Dimitry Andric):
[sanitizer_symbolizer] Cast arguments for format strings in markup (#89815)

  When compiling the common sanitizer libraries, there are many warnings
  about format specifiers, similar to:

      compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp:31:32: warning: format specifies type 'void *' but the argument has type 'uptr' (aka 'unsigned long') [-Wformat]
         31 |   buffer->AppendF(kFormatData, DI->start);
            |                   ~~~~~~~~~~~  ^~~~~~~~~
      compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h:33:46: note: format string is defined here
         33 | constexpr const char *kFormatData = "{{{data:%p}}}";
            |                                              ^~
            |                                              %lu
      compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp:46:43: warning: format specifies type 'void *' but the argument has type 'uptr' (aka 'unsigned long') [-Wformat]
         46 |   buffer->AppendF(kFormatFrame, frame_no, address);
            |                   ~~~~~~~~~~~~            ^~~~~~~
      compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup_constants.h:36:48: note: format string is defined here
         36 | constexpr const char *kFormatFrame = "{{{bt:%u:%p}}}";
            |                                                ^~
            |                                                %lu
      ...

  This is because `uptr` is dependent on the platform, and can be either
  `unsigned long long`, `unsigned long`, or `unsigned int`.

  To fix the warnings, cast the arguments to the expected type of the
  format strings.

PR:		276104
Reported by:	pstef
MFC after:	3 days
2024-04-25 18:47:47 +02:00
..
arm-optimized-routines
atf
bc
bearssl
bionic-x86_64-string
blocklist
bmake
bsddialog
bsnmp
byacc
bzip2
capsicum-test
com_err
cortex-strings
dialog
diff
dma
ee
elftoolchain
expat
file
flex
gdtoa
googletest
hyperv/tools
jemalloc
kyua
ldns
ldns-host
less MFV: less: Do not trust st_size if it equals zero 2024-04-23 22:33:26 -07:00
lib9p
libarchive libarchive: fix null format string error in tests (unbreaks gcc13 build) 2024-04-17 09:37:04 +02:00
libbegemot
libc-pwcache
libc-vis
libcbor
libcxxrt Tentatively apply https://github.com/libcxxrt/libcxxrt/pull/27 2024-04-06 22:13:54 +02:00
libdiff
libdivsufsort
libedit
libevent
libexecinfo
libfido2
libpcap
libucl
libxo
llvm-project Merge commit 0f329e0246d1 from llvm-project (by Dimitry Andric): 2024-04-25 18:47:47 +02:00
lua
lutok
mandoc
mknod
mtree
ncurses
netbsd-tests
netcat
ntp
nvi
ofed
one-true-awk
openbsm
opencsd/decoder
openpam
openresolv
pam_modules/pam_passwdqc
pf
pjdfstest
pnglite
pnpinfo
processor-trace
sendmail
smbfs
spleen
sqlite3
tcp_wrappers
tcpdump
tcsh
telnet
terminus
tnftp
tzcode
tzdata
unbound
unifdef
unvis
vis
wireguard-tools
wpa
xz