[Mono-dev] [Patch] Gendarme DontDestroyStackTrace rule

Russell Morris russell at russellsprojects.com
Mon Aug 14 22:55:03 EDT 2006


Hi,

I've attached a tiny patch to the DontDestroyStackTrace rule present in 
Gendarme.  This patch allows this rule to more gracefully deal with the 
invalid IL that is present in a few libraries shipped with Mono 1.1.15.

The [System.DirectoryServices.]DirectorySearcher.DoSearch() method has 
some illegal IL that jumps outside of a catch handler with a plain 'br' 
(instead of a 'leave').  A more thorough analysis is available on my 
blog at http://blog.russellsprojects.com for those that are interested 
in the details :)

Current builds of mcs (I have not tested gmcs) do not generate this 
invalid IL.

Russ
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ExceptionRuleUpdate.diff
Url: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060814/967c6283/attachment.pl 


More information about the Mono-devel-list mailing list