summaryrefslogtreecommitdiff
path: root/libcutils/ashmem-dev.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libcutils/ashmem-dev.cpp')
-rw-r--r--libcutils/ashmem-dev.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcutils/ashmem-dev.cpp b/libcutils/ashmem-dev.cpp
index 8c232f0cd0..20cd6592d8 100644
--- a/libcutils/ashmem-dev.cpp
+++ b/libcutils/ashmem-dev.cpp
@@ -122,7 +122,8 @@ static bool check_vendor_memfd_allowed() {
return true;
}
- /* If its not a number, assume string, but check if its a sane string */
+ // Non-numeric should be a single ASCII character. Characters after the
+ // first are ignored.
if (tolower(vndk_version[0]) < 'a' || tolower(vndk_version[0]) > 'z') {
ALOGE("memfd: ro.vndk.version not defined or invalid (%s), this is mandated since P.\n",
vndk_version.c_str());