[mythtv-commits] Ticket #9919: LogPrintLine leads to crash

MythTV noreply at mythtv.org
Tue Jul 12 17:33:07 UTC 2011


#9919: LogPrintLine leads to crash
------------------------------------------------+--------------------------
 Reporter:  Jim Stichnoth <stichnot@…>          |          Owner:  beirdo
     Type:  Bug Report - Crash                  |         Status:  closed
 Priority:  minor                               |      Milestone:  0.25
Component:  MythTV - General                    |        Version:  Trunk
 Severity:  medium                              |  Head
 Keywords:                                      |     Resolution:  fixed
                                                |  Ticket locked:  0
------------------------------------------------+--------------------------
Changes (by Github):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 Fix log messages containing %

 Fixed #9919

 The issue here is that after the fully formatted QString is converted to a
 char *, it is still run through vsnprintf as that is common code with the
 C
 implementation.  To fix this, I have added a regexp-based replace in the
 macro
 that will convert "%" or "%%" to "%%".  This will account for places we
 already
 put "%%" into the QString, and for those we did not.
  Branch:    master
  Changeset: 58b0909d5f4018418b3fa200eab1975813446e9c

-- 
Ticket URL: <http://code.mythtv.org/trac/ticket/9919#comment:2>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center


More information about the mythtv-commits mailing list