Opened 13 years ago
Closed 13 years ago
#11550 closed Patch - Bug Fix (fixed)
Patch for static analysis detected array index undefined in dvdringbuf.cpp
| Reported by: | Owned by: | ||
|---|---|---|---|
| Priority: | minor | Milestone: | 0.27 |
| Component: | MythTV - DVD Playback | Version: | Master Head |
| Severity: | medium | Keywords: | |
| Cc: | Ticket locked: | no |
Description
Static analysis (scan-build) detected a potential code path that would result in calling guess_palette with the palette array not having been initialized, and indexing m_clut with an undefined value. This patch initializes the arrays.
https://github.com/garybuhrmaster/mythtv/commit/824013456f41f4c90daa1f1a3879a1c9e06c28c5
Change History (4)
Note:
See TracTickets
for help on using tickets.

btw, this patch also fixes the static analysis detected alpha value (potentially) being uninitialized and passed to guess_palette, where it is used in a calculation.