[request-sponsor] patch for Bug 6613302
Ashwin, I'll sponsor you for this bug. Further discussion about it should be offlist. Antonello ashwin wrote: 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 Description: 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 ___ request-sponsor mailing list request-sponsor at opensolaris.org
[request-sponsor] patch for Bug 6613302
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 Description: 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 -- Regards Ashwin Bhat -- next part -- A non-text attachment was scrubbed... Name: diff Type: application/octet-stream Size: 607 bytes Desc: not available URL: http://mail.opensolaris.org/pipermail/request-sponsor/attachments/20080102/0cb08238/attachment.obj