Commit 2c13f744 authored by Jürg Billeter's avatar Jürg Billeter Committed by Jürg Billeter

Fix potential crash when argument check of method call fails, fixes bug

2009-01-04  Jürg Billeter  <j@bitron.ch>

	* vala/valamethodcall.vala:

	Fix potential crash when argument check of method call fails,
	fixes bug 566077

svn path=/trunk/; revision=2273
parent 2c1bf578
2009-01-04 Jürg Billeter <j@bitron.ch>
* vala/valamethodcall.vala:
Fix potential crash when argument check of method call fails,
fixes bug 566077
2009-01-04 Jürg Billeter <j@bitron.ch>
* vala/valaarraycreationexpression.vala:
......
/* valamethodcall.vala
*
* Copyright (C) 2006-2008 Jürg Billeter
* Copyright (C) 2006-2009 Jürg Billeter
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
......@@ -427,7 +427,10 @@ public class Vala.MethodCall : Expression {
}
}
analyzer.check_arguments (this, mtype, params, get_argument_list ());
if (!analyzer.check_arguments (this, mtype, params, get_argument_list ())) {
error = true;
return false;
}
if (may_throw) {
if (parent_node is LocalVariable || parent_node is ExpressionStatement) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment