Bug 704568 - Possible problems found by static analysis of code
Summary: Possible problems found by static analysis of code
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pnm2ppa
Version: 15
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Tim Waugh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-13 15:49 UTC by Jiri Popelka
Modified: 2011-05-20 15:08 UTC (History)
1 user (show)

Fixed In Version: pnm2ppa-1.04-22.fc16
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-20 15:08:54 UTC
Type: ---


Attachments (Terms of Use)
return_local (1.66 KB, patch)
2011-05-13 15:50 UTC, Jiri Popelka
no flags Details | Diff

Description Jiri Popelka 2011-05-13 15:49:58 UTC
Description of problem:
Static analysis of the code with/without applied patches discovered
some possible problems in the code.


Version-Release number of selected component (if applicable):
pnm2ppa-1.04-21.fc15

Comment 1 Jiri Popelka 2011-05-13 15:50:58 UTC
Created attachment 498797 [details]
return_local

Error: RETURN_LOCAL:
pnm2ppa-1.04/calibrate_ppa.c:162: local_ptr_assign_local: Assigning: "out_filepath" = "filepath" (address of local variable "filepath").
pnm2ppa-1.04/calibrate_ppa.c:164: out_of_scope: Variable "filepath" goes out of scope.
pnm2ppa-1.04/calibrate_ppa.c:226: use_invalid: Using "out_filepath", which points to an out-of-scope variable "filepath".

Error: RETURN_LOCAL:
pnm2ppa-1.04/pnm2ppa.c:159: local_ptr_assign_local: Assigning: "path" = "File_path" (address of local variable "File_path").
pnm2ppa-1.04/pnm2ppa.c:160: return_local_addr_alias: Returning pointer "path" which points to local variable "File_path".


Note You need to log in before you can comment on or make changes to this bug.