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

Commit 1012f1f1 authored by Nick Kralevich's avatar Nick Kralevich Committed by Android Git Automerger
Browse files

am 21059b63: am 5e7b7cd6: Merge "range checking for tnf" into gingerbread

Merge commit '21059b63'

* commit '21059b63':
  range checking for tnf
parents 46d21161 21059b63
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -168,6 +168,10 @@ public class NdefRecord implements Parcelable {
            throw new IllegalArgumentException("Illegal null argument");
        }

        if (tnf < 0 || tnf > 0x07) {
            throw new IllegalArgumentException("TNF out of range " + tnf);
        }

        /* generate flag */
        byte flags = FLAG_MB | FLAG_ME;