summaryrefslogtreecommitdiff
path: root/utils/loc_cfg.cpp
diff options
context:
space:
mode:
authorKevin Tang <zhikait@codeaurora.org>2015-07-06 14:14:17 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2015-08-18 17:01:12 -0700
commita38a8b84771fd0b8b7df126bde012d644b129bb8 (patch)
tree9f45762156ad4b868c04c718b4a4873463b7c8be /utils/loc_cfg.cpp
parent95fbf27ce1cbc939b3ec2268c5c190c557b22121 (diff)
downloadgps-a38a8b84771fd0b8b7df126bde012d644b129bb8.tar.gz
memory management fixes
byte long each, but the loc_set_config_entry() util call writes an int at a time, causing buffer overflow. #2, in loc_xtra-init(), a data structure wrap happened without iniializing the unused data fields. Change-Id: I96b40a330316927d276840a997082fe759263699 CRs-Fixed: 866937
Diffstat (limited to 'utils/loc_cfg.cpp')
-rw-r--r--utils/loc_cfg.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/loc_cfg.cpp b/utils/loc_cfg.cpp
index a769776..5c33320 100644
--- a/utils/loc_cfg.cpp
+++ b/utils/loc_cfg.cpp
@@ -52,8 +52,8 @@
*============================================================================*/
/* Parameter data */
-static uint8_t DEBUG_LEVEL = 0xff;
-static uint8_t TIMESTAMP = 0;
+static uint32_t DEBUG_LEVEL = 0xff;
+static uint32_t TIMESTAMP = 0;
/* Parameter spec table */
static loc_param_s_type loc_param_table[] =