
# HG changeset patch # User Kaitlin Rupert <karupert@us.ibm.com> # Date 1214246238 25200 # Node ID 3d2618df45908eecf363442d50e43297ebd77a62 # Parent e3b5268c1b4e18a7b0bfe48d98d1f1017a4498c6 Fix potiential seg fault in parse_id(). It's possible to hit a seg fault with calling VSSDComponent's vssd_to_rasd(), VSSD's get_vssd_by_ref(), or VirtualSystemSnapshotService's destroy_snapshot(). Signed-off-by: Kaitlin Rupert <karupert@us.ibm.com> diff -r e3b5268c1b4e -r 3d2618df4590 libxkutil/misc_util.c --- a/libxkutil/misc_util.c Fri Jun 13 18:39:12 2008 -0700 +++ b/libxkutil/misc_util.c Mon Jun 23 11:37:18 2008 -0700 @@ -408,8 +408,8 @@ char **name) { int ret; - char *tmp_pfx; - char *tmp_name; + char *tmp_pfx = NULL; + char *tmp_name = NULL; ret = sscanf(id, "%a[^:]:%as", &tmp_pfx, &tmp_name); if (ret != 2) {