[mythtv-commits] [MythTV/mythtv] 8e3612: MythEDID: fix out of bounds memory access
noreply at github.com
Sat Jun 25 12:58:27 UTC 2022
Author: Scott Theisen <scott.the.elm at gmail.com>
Date: 2022-06-25 (Sat, 25 Jun 2022)
MythEDID: fix out of bounds memory access
found by valgrind while investigating segmentation faults that
occured randomly on startup of mythfrontend.
There are only 4 descriptors in the EDID data structure.
By incorrectly looping 5 times in MythEDID::ParseBaseBlock(),
an offset of 126 is passed to ParseDisplayDescriptor() or
ParseDetailedTimingDescriptor() which will then read past
the end of the 128 byte EDID data structure.
This appears to have always been wrong since it was added in
More information about the mythtv-commits