Project

General

Profile

Bug #7878

libhotplug: libhotplug.c may use uninitialized pointer

Added by Toomas Soome almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
2017-02-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:

Description

../common/libhotplug.c:476:10: error: 'root' may be used uninitialized in this function [-Werror=maybe-uninitialized]
  if (root->hp_basepath == NULL) {
      ~~~~^~~~~~~~~~~~~
#1

Updated by Toomas Soome almost 4 years ago

  • Subject changed from libotplug: libhotplug.c may use uninitialized pointer to libhotplug: libhotplug.c may use uninitialized pointer
#2

Updated by Electric Monk over 3 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 90 to 100

git commit d598ea2f72da808b574d947bec3b454195bd3d13

commit  d598ea2f72da808b574d947bec3b454195bd3d13
Author: Toomas Soome <tsoome@me.com>
Date:   2017-03-21T16:06:00.000Z

    7878 libhotplug: libhotplug.c may use uninitialized pointer
    Reviewed by: Yuri Pankov <yuri.pankov@gmail.com>
    Reviewed by: Andy Stormont <astormont@racktopsystems.com>
    Approved by: Robert Mustacchi <rm@joyent.com>

Also available in: Atom PDF