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

Commit a6754dd5 authored by Greg Hartman's avatar Greg Hartman
Browse files

Fix read past end of malloc block in logd

Bug: 35412453
Test: Local build
Change-Id: I0f9dee84ef689b042926b6b48abf0caeaa784add
parent 3ce7d82a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -183,7 +183,8 @@ static enum match_type identical(LogBufferElement* elem, LogBufferElement* last)
    lenr -= avcr - msgr;
    if (lenl != lenr) return DIFFERENT;
    if (fastcmp<memcmp>(avcl + strlen(avc),
                        avcr + strlen(avc), lenl)) return DIFFERENT;
                        avcr + strlen(avc),
                        lenl - strlen(avc))) return DIFFERENT;
    return SAME;
}