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

Commit 21f0854d authored by Kostya Kortchinsky's avatar Kostya Kortchinsky
Browse files

Disable Scudo's mismatch check for media_swcodec

Some third party code is triggering the mismatch allocation check
resulting in the service being terminated. Given that those mismatches
have fairly low security implications and that said code cannot be
immediately fixed, disable the check for now.

Test: media post submit test suite
Bug: 121178348
Change-Id: If9601d719969e590b80ab50c016903fb459c0cdf
parent 48d4fff7
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -37,6 +37,12 @@ static const char kSystemSeccompPolicyPath[] =
static const char kVendorSeccompPolicyPath[] =
        "/vendor/etc/seccomp_policy/mediacodec.policy";

// Disable Scudo's mismatch allocation check, as it is being triggered
// by some third party code.
extern "C" const char *__scudo_default_options() {
  return "DeallocationTypeMismatch=false";
}

int main(int argc __unused, char** /*argv*/)
{
    LOG(INFO) << "media swcodec service starting";