commit | 4cb44c4f2ca702e46bbfd12fbfa8fe928e78bccb | [log] [tgz] |
---|---|---|
author | Evan Ralston <eralston@amazon.com> | Fri Feb 10 01:19:55 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Fri Feb 10 01:19:55 2017 +0000 |
tree | f408a32a4bd5b9a0516e2882d791810a1f6f70e4 | |
parent | 9b86005826bc4eaa9efcd03ef122d842828b0411 [diff] | |
parent | 72d60d9548f5322bbdafe9739f51ca0bb0552c98 [diff] |
Merge "Check against LOG_ID_MAX instead of LOG_ID_KERNEL" am: 9fcabf739b Change-Id: I6a07a22d727e2e5a886bf6c717d787273feb3226
diff --git a/liblog/logd_reader.c b/liblog/logd_reader.c index ccc7da8..9411f36 100644 --- a/liblog/logd_reader.c +++ b/liblog/logd_reader.c
@@ -91,7 +91,7 @@ static int logdAvailable(log_id_t logId) { - if (logId > LOG_ID_KERNEL) { + if (logId >= LOG_ID_MAX || logId == LOG_ID_KERNEL) { return -EINVAL; } if (logId == LOG_ID_SECURITY) {