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

Commit bde90723 authored by Ajay Panicker's avatar Ajay Panicker
Browse files

Make Bluetooth SQL query strict to prevent injection

Bug: 20531462
Change-Id: I8a90c81b727415fa566547f66bf0f64872850189
(cherry picked from commit 760fe946)
parent 458b8c16
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -293,6 +293,7 @@ public final class BluetoothOppProvider extends ContentProvider {
        SQLiteDatabase db = mOpenHelper.getReadableDatabase();

        SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
        qb.setStrict(true);

        int match = sURIMatcher.match(uri);
        switch (match) {