Hi all,

Here is the patch for the bug 6613302
Link to the bug is  http://bugs.opensolaris.org/view_bug.do?bug_id=6613302
Synopsis:svcadm uses emsg_nomem before it's defined
Category : utility:smf

emsg_nomem is used before it is defined (v 1.18 of svcadm.c)

  2124          scratch_fmri = malloc(max_scf_fmri_sz);
  2125          if (scratch_fmri == NULL)
  2126                  uu_die(emsg_nomem);
  2146          emsg_nomem = gettext("Out of memory.\n");

if the test on line 2125 fail, the user will get a segmentation fault
instead of the proper error message.

Action to be taken : define emsg_nomem before uu_die uses it.

Changes to be made in the file: onnv/onnv-gate/usr/src/cmd/svc/svcadm/svcadm.c
My SCA Number is OS0144
Have attached the diff
I request a sponsor for integrating this patch
Thank you all

Ashwin Bhat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: diff
Type: application/octet-stream
Size: 607 bytes
Desc: not available

Reply via email to