Project

General

Profile

Bug #2742

minor memory allocation issue in svccfg:upgrade_manifestfiles()

Added by Milan Jurik over 8 years ago. Updated over 8 years ago.

Status:
Resolved
Priority:
Low
Assignee:
Category:
cmd - userland programs
Start date:
2012-05-15
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

pname is allocated, never tested for success and never freed.


Files

2742.diff (1.52 KB) 2742.diff suggested fix Milan Jurik, 2012-05-27 03:01 PM

Related issues

Related to illumos gate - Bug #1991: svccfg describe -t Segmentation FaultResolvedMilan Jurik2012-01-17

Actions
#1

Updated by Milan Jurik over 8 years ago

Not only pname but also fval is not handled well.

#2

Updated by Milan Jurik over 8 years ago

#3

Updated by Dan McDonald over 8 years ago

  • Status changed from In Progress to Pending RTI

changeset: 13705:70355eedf57a
user: Milan Jurik <>
date: Sun May 27 16:49:00 2012 +0200

description:
1991 svccfg describe -t Segmentation Fault
2742 minor memory allocation issue in svccfg:upgrade_manifestfiles()
Reviewed by: Albert Lee <>
Reviewed by: T Nguyen <>
Approved by: Rich Lowe <>
Approved by: Garrett D'Amore <>

modified:
usr/src/cmd/svc/svccfg/svccfg_libscf.c
usr/src/lib/libscf/common/scf_tmpl.c

#4

Updated by Dan McDonald over 8 years ago

  • Status changed from Pending RTI to Resolved

Also available in: Atom PDF