Avi Kivity
720e9521f0
utils: build_id: correct fmt include
...
fmt::print(std::ostream&) is in <fmt/ostream.h>
Closes #9641
2021-11-17 09:02:57 +02:00
Avi Kivity
379454c235
utils: convert fmt::fprintf() to fmt::print()
...
Standardizing on a common format language.
2021-10-27 17:02:00 +03:00
Avi Kivity
a55b434a2b
treewide: extent copyright statements to present day
2021-06-06 19:18:49 +03:00
Avi Kivity
af8fd8c8d8
utils: build_id: fix ubsan false positive on pointer arithmetic
...
get_nt_build_id() constructs a pointer by adding a base and an
offset, but if the base happens to be zero, that is undefined
under C++ rules (altough legal ELF).
Fix by performing the addition on integers, and only then
casting to a pointer.
Closes #7379
2020-10-11 17:23:40 +03:00
Benny Halevy
9256d2f504
build_id: simplify callback pointer type casting
...
Signed-off-by: Benny Halevy <bhalevy@scylladb.com >
2020-08-03 15:55:18 +03:00
Benny Halevy
bf6e8f66d9
build_id: mv sources to utils/
...
The root directory is already overcrowded.
Signed-off-by: Benny Halevy <bhalevy@scylladb.com >
2020-08-03 15:55:16 +03:00