* Guid.cs: properly throw if the parsed guid has more data after
parsing a correct guid. Fixes #616050.
svn path=/trunk/mcs/; revision=159319
+2010-06-22 Jb Evain <jbevain@novell.com>
+
+ * Guid.cs: properly throw if the parsed guid has more data after
+ parsing a correct guid. Fixes #616050.
+
2010-06-21 Rodrigo Kumpera <rkumpera@novell.com>
* Environment.cs: bump up corlib version.
if (format == Format.P && !ParseChar (')'))
return false;
+ if (!Eof)
+ return false;
+
guid = new Guid ((int) a, (short) b, (short) c, d);
return true;
}
if (!(ParseChar ('}') && ParseChar ('}')))
return false;
+ if (!Eof)
+ return false;
+
guid = new Guid ((int) a, (short) b, (short) c, d);
return true;
}