nix-super/tests/unit
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
..
libexpr Forgot to include config-expr.hh in some places 2024-07-08 10:37:34 -04:00
libexpr-support Merge pull request #11089 from NixOS/warnings-includes 2024-07-12 10:29:26 -04:00
libfetchers Fix build to use CanonPath in new FSO sinks 2024-07-11 12:14:48 +02:00
libflake No global settings in libnixfetchers and libnixflake 2024-07-12 08:50:28 -04:00
libstore Ensure we can construct remote store configs in isolation 2024-07-15 17:32:49 -04:00
libstore-support packaging: Pass version directly 2024-07-06 17:52:57 +02:00
libutil getSnippetUpTo: Return optional 2024-07-15 20:10:45 +02:00
libutil-support Avoid casting function pointer in libutil test support 2024-07-16 22:01:34 +00:00