Bug 322573 (MONO79872) - [metadata validation] runtime crashes after Assembly.LoadFrom is given a module without an assembly manifest
Summary: [metadata validation] runtime crashes after Assembly.LoadFrom is given a modu...
Status: RESOLVED FIXED
Alias: MONO79872
Product: Mono: Runtime
Classification: Mono
Component: misc (show other bugs)
Version: 1.0
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Raja R Harinath
QA Contact: Mono Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-09 14:34 UTC by Raja R Harinath
Modified: 2007-09-15 21:24 UTC (History)
0 users

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
proposed fix (893 bytes, patch)
2006-11-09 14:39 UTC, Thomas Wiest
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Wiest 2007-09-15 20:15:29 UTC


---- Reported by rharinath@novell.com 2006-11-09 07:34:43 MST ----

Suppose Assembly.LoadFrom is given a module without an assembly manifest --
the call succeeds, but subsequently, eventually, the runtime asserts out.

.NET nips it at the bud, and throws BadFileFormatException during the
LoadFrom (.NET 1.1 throws FileLoadException instead).



---- Additional Comments From rharinath@novell.com 2006-11-09 07:39:20 MST ----

Created an attachment (id=170840)
proposed fix




---- Additional Comments From rharinath@novell.com 2006-11-09 10:46:24 MST ----

Applied in SVN r67589.  Keeping open since I need to add a regression
test.



---- Additional Comments From rharinath@novell.com 2006-11-14 08:36:15 MST ----

Regression test added in SVN r67837.


This bug blocked bug(s) 58244.
Imported an attachment (id=170840)

Unknown operating system unknown. Setting to default OS "Other".