Opened 12 years ago
Closed 12 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)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Owner: | set to Gary Buhrmaster <gary.buhrmaster@…> |
---|---|
Resolution: | → fixed |
Status: | new → closed |
comment:3 Changed 12 years ago by
Milestone: | unknown → 0.27 |
---|---|
Resolution: | fixed |
Status: | closed → new |
comment:4 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
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.