Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 887d74b4 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "logd: identical check access message data out of range"

parents ff9b1db6 22712428
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -171,7 +171,9 @@ static enum match_type identical(LogBufferElement* elem,
    }

    // audit message (except sequence number) identical?
    if (last->isBinary()) {
    if (last->isBinary() &&
        (lenl > static_cast<ssize_t>(sizeof(android_log_event_string_t))) &&
        (lenr > static_cast<ssize_t>(sizeof(android_log_event_string_t)))) {
        if (fastcmp<memcmp>(msgl, msgr, sizeof(android_log_event_string_t) -
                                            sizeof(int32_t))) {
            return DIFFERENT;