[mythtv-commits] Ticket #12238: Patch to address technical violation of memcpy null source address
MythTV
noreply at mythtv.org
Wed Aug 6 16:44:37 UTC 2014
#12238: Patch to address technical violation of memcpy null source address
-------------------------------------------------+-------------------------
Reporter: Gary Buhrmaster | Owner:
<gary.buhrmaster@…> | Status: new
Type: Patch - Bug Fix | Milestone: unknown
Priority: trivial | Version: Master Head
Component: MythTV - General | Keywords:
Severity: low |
Ticket locked: 0 |
-------------------------------------------------+-------------------------
Static analysis (scan-build) reported that memcpy could be called with a
NULL source address (where length would be zero) when following specific
code paths. That is technically a violation of the library function
(although most known implementations would operate properly without
producing a fault with a length of zero). This patch provides the
appropriate check to avoid/resolve the potential issue. One less static
analysis reported bug.
Visual check of the code only (the "it looks reasonable to me" check), I
have no CAM devices to even consider testing with.
github ref:
https://github.com/garybuhrmaster/mythtv/commit/91cb0eae37011db0a916c59cb28d4c3b3351efe5
github git-am ref:
https://github.com/garybuhrmaster/mythtv/commit/91cb0eae37011db0a916c59cb28d4c3b3351efe5.patch
--
Ticket URL: <https://code.mythtv.org/trac/ticket/12238>
MythTV <http://www.mythtv.org>
MythTV Media Center
More information about the mythtv-commits
mailing list