[mythtv-commits] Ticket #13263: Crash in ProgramMapTable::Create

MythTV noreply at mythtv.org
Wed May 9 01:55:39 UTC 2018

#13263: Crash in ProgramMapTable::Create
 Reporter:  Gary Buhrmaster     |          Owner:  David Hampton <mythtv@…>
     Type:  Bug Report - Crash  |         Status:  closed
 Priority:  minor               |      Milestone:  unknown
Component:  MythTV - General    |        Version:  Unspecified
 Severity:  medium              |     Resolution:  fixed
 Keywords:  gcc8                |  Ticket locked:  0

Comment (by David Hampton <mythtv@…>):

 In [changeset:"c2fa4ba7981032edf6dcafec90d1e64a8139144b/mythtv"
 #!CommitTicketReference repository="mythtv"
 Fix crash in ProgramMapTable::Create

 Abort in libmythtv due to accessing beyond the size of the vector.

 With at least some recording sources (I am using an OCUR device) it is
 apparently possible to end up having zero descriptors in the stream
 when ProgramMapTable::Create is called, but GCC 8 (and libstdc++) now
 includes AddressSanitizer integration for std::vector, detecting
 out-of-range accesses to a vector, which means that referencing the
 0th element is now an error (and an abort) even though the called code
 would not typically copy any data.

 Patch from Gary Buhrmaster, fixes #13263.

 (cherry picked from commit 7f00642ba11eb0d9d633a23ce74e5b695c05153e)

Ticket URL: <https://code.mythtv.org/trac/ticket/13263#comment:3>
MythTV <http://www.mythtv.org>
MythTV Media Center

More information about the mythtv-commits mailing list