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

Commit e296e00d authored by Todd Kennedy's avatar Todd Kennedy
Browse files

use negative mask

the test should be for _invalid_ bits; as it's written,
it tests for valid bits

Change-Id: Id5e42e865449a7877fe58aca9fb47675fa7452c9
parent 8161da7a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1066,7 +1066,7 @@ int dexopt(const char *apk_path, uid_t uid, const char *pkgname, const char *ins
    bool boot_complete = (dexopt_flags & DEXOPT_BOOTCOMPLETE) != 0;
    bool use_jit = (dexopt_flags & DEXOPT_USEJIT) != 0;

    if ((dexopt_flags & DEXOPT_MASK) != 0) {
    if ((dexopt_flags & ~DEXOPT_MASK) != 0) {
        LOG_FATAL("dexopt flags contains unknown fields\n");
    }