[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] A verifier bug and potential problem
From: |
Gopal V |
Subject: |
[Pnet-developers] A verifier bug and potential problem |
Date: |
Sun, 27 Jul 2003 00:13:32 +0530 |
User-agent: |
Mutt/1.2.5i |
Hi Everyone,
It's by some buggy code that Rich333 wrote to test Reflection.Emit
that we found this problem .... consider this code
ldc.i4.0
ldc.i4.0
stfld int32 'MyClass'::'x'
Which curiously gives a NullReferenceException , and ldc.i4.1 gives
a segfault ...
Bug #1 -- pnet is running the verifier in "unsafeAllowed" mode by default
Bug #2 -- methods are not tagged as unsafe , but assemblies are !
To solve Bug #1 , someone should figure out how to load the Unverifiable
attribute and pass it to _ILVerify ...
To solve Bug #2 , the next release of ECMA spec should include a dummy
unsafe.enter , unsafe.exit opcode or something ... to wrap an unsafe
method or unsafe {} codeblocks.
/me goes to sleep ...
Gopal
--
The difference between insanity and genius is measured by success
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pnet-developers] A verifier bug and potential problem,
Gopal V <=