Update of /cvsroot/sblim/gather/plugin
In directory vz-cvs-3.sog:/tmp/cvs-serv7961/plugin
Modified Files:
metricVirt.c
Log Message:
Fixed 3514701: segv parsing xml if no defined source media
Index: metricVirt.c
===================================================================
RCS file: /cvsroot/sblim/gather/plugin/metricVirt.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- metricVirt.c 2 Feb 2012 00:39:47 -0000 1.20
+++ metricVirt.c 3 Apr 2012 20:19:26 -0000 1.21
@@ -142,8 +142,9 @@
end = strstr(cur, "</disk");
+ /* check that we found a 'source' tag and it is part of the current disk block */
temp = strstr(cur, "<source");
- if (temp > end) {
+ if (!temp || temp > end) {
continue;
}
|