Bug 38825

Summary: mono_image_open() does not check header anymore
Product: [Mono] Runtime Reporter: Martin Baulig <martin.baulig>
Component: GeneralAssignee: Bugzilla <bugzilla>
Severity: normal CC: mono-bugs+mono, mono-bugs+runtime, vargaz
Priority: ---    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS   
Tags: Is this bug a regression?: ---
Last known good build:

Description Martin Baulig 2016-02-17 01:07:16 UTC
When trying to run "mono --debug X" where "X" is an existing file that's not a valid assembly, you get an ugly native stack trace instead of an error message.

This happens for instance if you specify "mono" twice on the command line by accident:

$ mono /Workspace/INSTALL/bin/mono /Workspace/INSTALL/lib/mono/4.5/mcs.exe
Comment 1 Zoltan Varga 2016-02-19 04:35:39 UTC
Fixed in master/4.3.2.