Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93a5679a authored by Ivan Lozano's avatar Ivan Lozano Committed by Hansong Zhang
Browse files

Enable bounds sanitization in Bluetooth.

This enables UBSan bounds sanitization in our bluetooth modules.
This adds run-time bounds checks where the compiler can statically
determine the array bounds.

Bug: 116517182
Test: Pairing devices, playing audio, sharing files.
Change-Id: I9a3ac98aaa6092ac0ad8d1ba080a76b3203bdb26
parent a4fecb04
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -62,6 +62,9 @@ fluoride_defaults {
        "libbluetooth-types",
        "libbluetooth-types",
    ],
    ],
    cpp_std: "c++17",
    cpp_std: "c++17",
    sanitize: {
        misc_undefined: ["bounds"],
    },
}
}


// Enables code coverage for a set of source files. Must be combined with
// Enables code coverage for a set of source files. Must be combined with