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.
(cherry picked from commit 88ac54a4e8d2a63e4fd9c465e115795ace316776)
Change-Id: Iacc2b42bfe4069e0bfcbb1c48474f30126a93139
diff --git a/init/property_service.c b/init/property_service.c
index cd4d3c7..86e35f1 100755
--- a/init/property_service.c
+++ b/init/property_service.c
@@ -265,7 +265,7 @@
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);
}