diff options
author | Colin Cross <ccross@android.com> | 2013-01-29 14:58:57 -0800 |
---|---|---|
committer | Colin Cross <ccross@android.com> | 2013-06-17 12:44:35 -0700 |
commit | 88ac54a4e8d2a63e4fd9c465e115795ace316776 (patch) | |
tree | 76a19b1316ec538c7613ae7efa3d61dab41a7cbf /init/property_service.c | |
parent | 9f5af635010a7ba92edf1fca543f7271cc9d75c8 (diff) | |
download | system_core-88ac54a4e8d2a63e4fd9c465e115795ace316776.zip system_core-88ac54a4e8d2a63e4fd9c465e115795ace316776.tar.gz system_core-88ac54a4e8d2a63e4fd9c465e115795ace316776.tar.bz2 |
init: verify size of property buffers passed to property_get
Verify that the buffer passed as the value parameter to property_get
is always big enough.
Change-Id: Ie5b6fcd94bb908215cfd55d0c9b07f717ddb70b1
Diffstat (limited to 'init/property_service.c')
-rw-r--r-- | init/property_service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/property_service.c b/init/property_service.c index 79ff6c0..846a0a3 100644 --- a/init/property_service.c +++ b/init/property_service.c @@ -272,7 +272,7 @@ static int check_perms(const char *name, unsigned int uid, unsigned int gid, cha return 0; } -int property_get(const char *name, char value[PROP_VALUE_MAX]) +int __property_get(const char *name, char *value) { return __system_property_get(name, value); } |