[mythtv-commits] Ticket #13264: Crash (abort) in MythSocket::ResetReal

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


#13264: Crash (abort) in MythSocket::ResetReal
--------------------------------+------------------------------------------
 Reporter:  Gary Buhrmaster     |          Owner:  David Hampton <mythtv@…>
     Type:  Bug Report - Crash  |         Status:  closed
 Priority:  minor               |      Milestone:  unknown
Component:  MythTV - General    |        Version:  Master Head
 Severity:  medium              |     Resolution:  fixed
 Keywords:  gcc8                |  Ticket locked:  0
--------------------------------+------------------------------------------

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

 In [changeset:"81d2fb020fd1e6e5c1114ff3e6c02f2e33a78188/mythtv"
 81d2fb020f/mythtv]:
 {{{
 #!CommitTicketReference repository="mythtv"
 revision="81d2fb020fd1e6e5c1114ff3e6c02f2e33a78188"
 Fix crash (abort) in MythSocket::ResetReal

 In libmythbase mythsocket.cpp MythSocket::ResetReal there can be cases
 where there are no bytes to available to read, so the vector is never
 resized to greater than zero, which results in an abort when
 referencing the 1st (non-existant) element which is now checked by
 gcc8 (libstdc++).

 Patch from Gary Buhrmaster, fixes #13264.

 (cherry picked from commit 1f78097f0cef0ca15e1b7eee4e94fd17ca3b07b7)
 }}}

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


More information about the mythtv-commits mailing list