nix-super/tests/unit/libutil-support/tests
Las Safin 5b6a21acc5
Avoid casting function pointer in libutil test support
Casting function pointers seems to be almost always UB.
See https://stackoverflow.com/questions/559581/casting-a-function-pointer-to-another-type

Fixed by doing the casting of `void*` to `std::string*` inside the function instead.

Caught by UBSan.
2024-07-16 22:01:34 +00:00
..
characterization.hh Unit test for derivation "advanced attrs" 2024-06-23 21:42:56 -04:00
hash.cc test: Generate distinct hashes 2024-01-31 18:35:19 +01:00
hash.hh Move tests to separate directories, and document 2023-12-01 10:48:58 -05:00
nix_api_util.hh C API: add (un)initialized value checks 2024-04-21 22:44:14 +02:00
string_callback.cc Avoid casting function pointer in libutil test support 2024-07-16 22:01:34 +00:00
string_callback.hh Avoid casting function pointer in libutil test support 2024-07-16 22:01:34 +00:00
tracing-file-system-object-sink.cc Fix build to use CanonPath in new FSO sinks 2024-07-11 12:14:48 +02:00
tracing-file-system-object-sink.hh Fix build to use CanonPath in new FSO sinks 2024-07-11 12:14:48 +02:00