[mythtv-commits] Ticket #13409: Valgrind error in dvbci.cpp

MythTV noreply at mythtv.org
Tue Feb 19 22:00:27 UTC 2019


#13409: Valgrind error in dvbci.cpp
-----------------------------+------------------------------
 Reporter:  Klaas de Waal    |          Owner:  (none)
     Type:  Patch - Bug Fix  |         Status:  new
 Priority:  minor            |      Milestone:  needs_triage
Component:  MythTV - DVB     |        Version:  Master Head
 Severity:  low              |     Resolution:
 Keywords:  DVBCI CAM        |  Ticket locked:  0
-----------------------------+------------------------------

Comment (by Klaas de Waal):

 Yes, using the packed attribute would also work. However, attributes are
 implementation/compiler dependent. Also there is memory alignment; in this
 case a 16-bit value is accessed at an odd address if the struct is
 packed.\\
 Copying the bytes to the exact location of a byte array always works
 independent of the compiler, the compiler flags, attributes and underlying
 hardware architecture.

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


More information about the mythtv-commits mailing list