Prevent value from being logged in exception handler to avoid data leak

This commit is contained in:
Nick Parker 2023-06-13 14:14:34 -05:00
parent b49f977f22
commit 7ef1132bbb

View File

@ -1634,7 +1634,7 @@ public final class SQLiteDatabase extends SQLiteClosable implements SupportSQLit
try {
return insertWithOnConflict(table, nullColumnHack, values, CONFLICT_NONE);
} catch (SQLException e) {
Log.e(TAG, "Error inserting " + values, e);
Log.e(TAG, "Error inserting", e);
return -1;
}
}
@ -1682,7 +1682,7 @@ public final class SQLiteDatabase extends SQLiteClosable implements SupportSQLit
return insertWithOnConflict(table, nullColumnHack, initialValues,
CONFLICT_REPLACE);
} catch (SQLException e) {
Log.e(TAG, "Error inserting " + initialValues, e);
Log.e(TAG, "Error inserting", e);
return -1;
}
}