Project

General

Profile

Actions

Bug #15116

closed

Fixing issues detected by an Analysis tool.

Added by jaruga (Jun Aruga) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:88994]

Description

When running a code analysis tool including several sub tools (mainly Coverty [1]), some issues were detected by it.
You can refer attached issues_report.txt for detail.

Some issues in the issues_report.txt might be false positive.
(Those might be wrongly detected.)

I tried to fix those by below 2 pull-requests.
https://github.com/ruby/ruby/pull/1956
https://github.com/ruby/net-telnet/pull/15

The summary is

  • Fix leaked storage in addr2line.c.
  • Fix passing freed pointer as an argument in gc.c.
  • Fix leaked handle variable "n" in process.c.
  • Fix for "top_root" leaking the resource.

After above patches, the issues were not detected.
But I need your help to check if my code is valid.

Thank you.

[1] https://scan.coverity.com/


Files

issues_report.txt (7.74 KB) issues_report.txt jaruga (Jun Aruga), 09/13/2018 01:42 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0