Opened 10 years ago
Closed 10 years ago
Last modified 10 years ago
#12237 closed Patch - Bug Fix (fixed)
Patch to correct allocator sizeof operand mismatch
Reported by: | Owned by: | stuartm | |
---|---|---|---|
Priority: | trivial | Milestone: | 0.28 |
Component: | MythTV - General | Version: | Master Head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
Static analysis (scan-build) reports that the allocator sizeof operand is mismatched from the usage. While for all common architectures, the size of a signed and unsigned char/int is the same, that is not assured for all platforms. Patch is to use a consistent sizeof operand. This patch is split into two parts, since it impacts two different files.
Patch 1 - github ref: https://github.com/garybuhrmaster/mythtv/commit/2c75c0cf4dde57f2f2c0857a0f807ef5289bf0ac github git-am ref: https://github.com/garybuhrmaster/mythtv/commit/2c75c0cf4dde57f2f2c0857a0f807ef5289bf0ac.patch
Patch 2 - github ref: https://github.com/garybuhrmaster/mythtv/commit/6d88020537a73c59bc350efe10ccde77817e783b github git-am ref: https://github.com/garybuhrmaster/mythtv/commit/6d88020537a73c59bc350efe10ccde77817e783b.patch
In 9e27d8ff5c6655b5027f154a694623f42e4a23d0/mythtv: