OSDN Git Service

Treat all tags as unsigned when comparing them
authorTucker Sylvestro <tuckeris@google.com>
Wed, 5 Oct 2016 18:39:39 +0000 (14:39 -0400)
committerTucker Sylvestro <tuckeris@google.com>
Wed, 5 Oct 2016 18:39:39 +0000 (14:39 -0400)
commit28a872eb797716868770a2115a6ef55f2178df6d
treec3ca2101b7e0af862a98c96630d7ddcd9bc41723
parent5982d8f27f009e749bbe845e1ed470e883c5b8f4
Treat all tags as unsigned when comparing them

All tags are presumed to be unsigned, but some of them have signed
representations that are negative.  This caused problems in
AuthorizationSet.Deduplicate, where TAG_APPLICATION_DATA (signed rep
of -1879047492) was being sorted before TAG_INVALID (0), which was
presumed to always be first in the list.

BUG: 30701680
Change-Id: I67047cee21fd7617248022a4674779fe80d5ddfd
include/hardware/keymaster_defs.h