Modify
Warning Please read the Ticket HowTo before creating or commenting on a ticket. Failure to do so may cause your ticket to be rejected or result in a slower response.

Opened 11 months ago

Closed 11 months ago

Last modified 10 months ago

#11553 closed Patch - Bug Fix (fixed)

Patch for (potential) uninitalized variable num_lines in mythuitext.cpp

Reported by: Gary Buhrmaster <gary.buhrmaster@…> Owned by: stuartm
Priority: minor Milestone: 0.27
Component: MythTV - User Interface Library Version: Unspecified
Severity: medium Keywords:
Cc: Ticket locked: no

Description

Static analysis (scan-build) indicates that there is a feasible code path in LayoutParagraphs? (called in GetNarrowWidth?) which will not result in calling Layout which will initialize the variable num_lines. Initialize the variable num_lines just in case (and make the analyzer happy).

https://github.com/garybuhrmaster/mythtv/commit/a5388fb30e8fce9b8875563d3b1382a2888fcc2c

Attachments (0)

Change History (2)

comment:1 Changed 11 months ago by Gary Buhrmaster <gary.buhrmaster@…>

  • Resolution set to fixed
  • Status changed from new to closed

In b1d6e4bef471c8cee39bdc5e644d4e8351f616e0/mythtv:

Patch for (potential) uninitalized variable num_lines

Static analysis indicates that there is a feasible
code path in LayoutParagraphs? (called in GetNarrowWidth?)
which will not result in calling Layout which will
initialize the variable num_lines. Initialize the
variable num_lines just in case (and make the
analyzer happy).
(cherry picked from commit a5388fb30e8fce9b8875563d3b1382a2888fcc2c)

Signed-off-by: Stuart Morgan <smorgan@…>

Fixes #11553

comment:2 Changed 10 months ago by paulh

  • Milestone changed from unknown to 0.27

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'new'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.