DO NOT MERGE: Fix vulnerability where large GPS XTRA data can be injected....
DO NOT MERGE: Fix vulnerability where large GPS XTRA data can be injected. -Can potentially crash system with OOM. Bug: 29555864
CYNGNOS-3286
Change-Id: I7157f48dddf148a9bcab029cf12e26a58d8054f4
(cherry picked from commit 759a9eba)
(cherry picked from commit c7ea2123)