1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00
nix/tests/unit/libutil-support
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
..
tests Avoid casting function pointer in libutil test support 2024-07-16 22:01:34 +00:00
.version Put back files for now 2024-07-02 09:26:22 -04:00
build-utils-meson Put back files for now 2024-07-02 09:26:22 -04:00
local.mk Put unit tests back in old build system for now 2024-07-02 09:26:22 -04:00
meson.build Put back files for now 2024-07-02 09:26:22 -04:00
package.nix packaging: Pass version directly 2024-07-06 17:52:57 +02:00