Skip to content

Commit

Permalink
4418 svc.startd crash with a long instance name and more than one dep…
Browse files Browse the repository at this point in the history
…endency

Reviewed by: Yuri Pankov <[email protected]>
Reviewed by: Marcel Telka <[email protected]>
Reviewed by: Albert Lee <[email protected]>
Approved by: Richard Lowe <[email protected]>
  • Loading branch information
danvatca authored and richlowe committed May 27, 2015
1 parent cb5842f commit 09f79f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usr/src/cmd/svc/startd/graph.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@

/*
* Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2015, Syneto S.R.L. All rights reserved.
*/

/*
Expand Down Expand Up @@ -2588,7 +2589,7 @@ process_dependency_pg(scf_propertygroup_t *pg, struct deppg_info *info)
fmri_sz = strlen(info->v->gv_name) + 1 + len + 1;
fmri = startd_alloc(fmri_sz);

(void) snprintf(fmri, max_scf_name_size, "%s>%s", info->v->gv_name,
(void) snprintf(fmri, fmri_sz, "%s>%s", info->v->gv_name,
pg_name);

/* Validate the pg before modifying the graph */
Expand Down

0 comments on commit 09f79f7

Please sign in to comment.