mono.git
11 years ago[Mono.Debugger.Soft] Made the receiver thread a background thread and gave it a name
Jeffrey Stedfast [Wed, 6 Mar 2013 21:00:07 +0000 (16:00 -0500)]
[Mono.Debugger.Soft] Made the receiver thread a background thread and gave it a name

11 years ago[sgen] Allow empty parameters in MONO_GC_PARAMS and MONO_GC_DEBUG.
Mark Probst [Wed, 6 Mar 2013 19:27:40 +0000 (11:27 -0800)]
[sgen] Allow empty parameters in MONO_GC_PARAMS and MONO_GC_DEBUG.

This allows easy appending/prepending, like so:

    export MONO_GC_PARAMS="major=marksweep-conc,$MONO_GC_PARAMS"

11 years agoFix some ARM assembly in MONO_CONTEXT_GET_CURRENT ().
Zoltan Varga [Wed, 6 Mar 2013 19:20:13 +0000 (20:20 +0100)]
Fix some ARM assembly in MONO_CONTEXT_GET_CURRENT ().

11 years agoMake the JIT icall wrappers for opcode emulation jit icalls call the C icall function...
Zoltan Varga [Wed, 6 Mar 2013 18:31:47 +0000 (19:31 +0100)]
Make the JIT icall wrappers for opcode emulation jit icalls call the C icall function directly on MT.

11 years agoModify the way calls to icalls are made from the icall wrappers. Previously, the...
Zoltan Varga [Wed, 6 Mar 2013 17:49:46 +0000 (18:49 +0100)]
Modify the way calls to icalls are made from the icall wrappers. Previously, the address to call was encoded in an OP_PCONST, and various pieces of code looked up the value in the jit icall table to see if it was an icall address. With the new approach, the fact that this is an icall address is explicit through the JIT.

11 years agoFix AOT on osx+amd64.
Zoltan Varga [Wed, 6 Mar 2013 17:46:25 +0000 (18:46 +0100)]
Fix AOT on osx+amd64.

11 years agoMerge pull request #593 from Cynede/master
Mark Probst [Wed, 6 Mar 2013 16:16:28 +0000 (08:16 -0800)]
Merge pull request #593 from Cynede/master

Python 3 compatibility in gen-descriptor-tests.py

11 years agoDisable more security context tests on mobile
Marek Safar [Wed, 6 Mar 2013 14:50:22 +0000 (15:50 +0100)]
Disable more security context tests on mobile

11 years agoUse more specific types
Marek Safar [Wed, 6 Mar 2013 14:49:46 +0000 (15:49 +0100)]
Use more specific types

11 years agouse floor division // instead of / because in python 3 / returns float, // works...
Heather [Tue, 5 Mar 2013 07:26:22 +0000 (11:26 +0400)]
use floor division // instead of / because in python 3 / returns float, // works in python 2 too

11 years agopython 3 compatibility in gen-descriptor-tests.py
Heather [Tue, 5 Mar 2013 06:52:00 +0000 (10:52 +0400)]
python 3 compatibility in gen-descriptor-tests.py

11 years agoOptimize Activator path used by new() constraint to run less code
Marek Safar [Wed, 6 Mar 2013 10:16:29 +0000 (11:16 +0100)]
Optimize Activator path used by new() constraint to run less code

11 years agoFix exception test text
Marek Safar [Wed, 6 Mar 2013 10:15:51 +0000 (11:15 +0100)]
Fix exception test text

11 years agoAdd test from Jb Evain to test biner with user method types
Marek Safar [Wed, 6 Mar 2013 09:23:47 +0000 (10:23 +0100)]
Add test from Jb Evain to test biner with user method types

11 years agoActivator cannot be used to create default instances of user types
Marek Safar [Tue, 5 Mar 2013 18:16:07 +0000 (19:16 +0100)]
Activator cannot be used to create default instances of user types

11 years ago[sgen] Unify non-concurrent and concurrent M&S.
Mark Probst [Tue, 5 Mar 2013 20:47:17 +0000 (12:47 -0800)]
[sgen] Unify non-concurrent and concurrent M&S.

11 years ago[tests] Init Random with defined value in GC descriptor tests.
Mark Probst [Tue, 5 Mar 2013 20:55:42 +0000 (12:55 -0800)]
[tests] Init Random with defined value in GC descriptor tests.

So we can reproduce bugs and compare time/space if we want.

11 years agoBump version number to 3.0.7.
Duncan Mak [Tue, 5 Mar 2013 18:15:04 +0000 (13:15 -0500)]
Bump version number to 3.0.7.

11 years agoChange the linkage of the type_info symbols generated by the LLVM backend, since...
Zoltan Varga [Tue, 5 Mar 2013 16:34:44 +0000 (17:34 +0100)]
Change the linkage of the type_info symbols generated by the LLVM backend, since using LLVMPrivateLinkage causes LLVM to generate assembly which is not allowed by clang. Fixes #10811.

11 years agoDon't mark unused interface methods. Fixes #10866
Marek Safar [Tue, 5 Mar 2013 15:58:23 +0000 (16:58 +0100)]
Don't mark unused interface methods. Fixes #10866

11 years agoRemove redundant culture info from string concatenations
Marek Safar [Tue, 5 Mar 2013 15:44:38 +0000 (16:44 +0100)]
Remove redundant culture info from string concatenations

11 years ago[rx] Add missing AssemblyInfos.
Atsushi Eno [Tue, 5 Mar 2013 15:56:35 +0000 (00:56 +0900)]
[rx] Add missing AssemblyInfos.

11 years agoAdd Assembly version attributes to hopefully fix bug #10002.
Atsushi Eno [Tue, 5 Mar 2013 14:57:39 +0000 (23:57 +0900)]
Add Assembly version attributes to hopefully fix bug #10002.

11 years agoUpdate binder primitive conversion to match .net
Marek Safar [Tue, 5 Mar 2013 14:02:40 +0000 (15:02 +0100)]
Update binder primitive conversion to match .net

11 years agoTweaks to Enum::FormatName to make it faster/smaller
Marek Safar [Tue, 5 Mar 2013 14:00:58 +0000 (15:00 +0100)]
Tweaks to Enum::FormatName to make it faster/smaller

11 years agoType.FilterAttribute accepts int criteria only
Marek Safar [Tue, 5 Mar 2013 11:54:03 +0000 (12:54 +0100)]
Type.FilterAttribute accepts int criteria only

11 years ago[monodoc] Make the help source test pass since the current errors are due to known...
Jeremie Laval [Tue, 5 Mar 2013 10:54:01 +0000 (10:54 +0000)]
[monodoc] Make the help source test pass since the current errors are due to known limitations.

11 years ago[monodoc] Cache intermediary result for legacy Nodes property. Add test.
Jeremie Laval [Tue, 5 Mar 2013 10:37:40 +0000 (10:37 +0000)]
[monodoc] Cache intermediary result for legacy Nodes property. Add test.

11 years ago[monodoc] Change new API for Nodes to be IList for future-proofing
Jeremie Laval [Tue, 5 Mar 2013 10:27:07 +0000 (10:27 +0000)]
[monodoc] Change new API for Nodes to be IList for future-proofing

11 years agoFixes build
Marek Safar [Tue, 5 Mar 2013 08:25:50 +0000 (09:25 +0100)]
Fixes build

11 years agoFix wrong usage of ConstructoInfo::Invoke
Marek Safar [Tue, 5 Mar 2013 08:17:37 +0000 (09:17 +0100)]
Fix wrong usage of ConstructoInfo::Invoke

11 years agoAdd to EXTRA_DIST.
Martin Baulig [Tue, 5 Mar 2013 00:21:32 +0000 (19:21 -0500)]
Add to EXTRA_DIST.

11 years agoAdd gc-descriptors to SUBDIRS.
Duncan Mak [Mon, 4 Mar 2013 23:03:41 +0000 (18:03 -0500)]
Add gc-descriptors to SUBDIRS.

11 years agoFix cominterop.
Rodrigo Kumpera [Mon, 4 Mar 2013 22:52:01 +0000 (17:52 -0500)]
Fix cominterop.

11 years agoFix marshal.c DISABLE_JIT on device.
Rodrigo Kumpera [Mon, 4 Mar 2013 17:21:17 +0000 (12:21 -0500)]
Fix marshal.c DISABLE_JIT on device.

11 years agoMerge pull request #577 from UCIS/patch-2
Miguel de Icaza [Mon, 4 Mar 2013 21:01:39 +0000 (13:01 -0800)]
Merge pull request #577 from UCIS/patch-2

Fix serialization of DateTime struct for MS compatibility

11 years agoMake internal abstract methods virtual to fix MethodBase subclassing.
Marek Safar [Mon, 4 Mar 2013 20:51:06 +0000 (21:51 +0100)]
Make internal abstract methods virtual to fix MethodBase subclassing.

11 years agoRuntime assembly mapping for PCL.
Martin Baulig [Mon, 4 Mar 2013 19:56:14 +0000 (14:56 -0500)]
Runtime assembly mapping for PCL.

11 years agoDist the Makefile.am.in files. Fixes #10874.
Zoltan Varga [Mon, 4 Mar 2013 19:46:08 +0000 (20:46 +0100)]
Dist the Makefile.am.in files. Fixes #10874.

11 years ago[sgen] Disable parallel M&S in combination with split nursery.
Mark Probst [Mon, 4 Mar 2013 19:23:16 +0000 (11:23 -0800)]
[sgen] Disable parallel M&S in combination with split nursery.

It crashes at least sgen-weakref-test.exe, and there's more important stuff to
attend to.

11 years agoMerge branch 'feature-descriptor-tests'
Mark Probst [Mon, 4 Mar 2013 18:47:49 +0000 (10:47 -0800)]
Merge branch 'feature-descriptor-tests'

11 years ago[tests] Test valuetype GC descriptors, too.
Mark Probst [Mon, 4 Mar 2013 16:59:12 +0000 (08:59 -0800)]
[tests] Test valuetype GC descriptors, too.

11 years ago[tests] Optional big-switch version of GC descriptor test.
Mark Probst [Thu, 28 Feb 2013 22:58:07 +0000 (14:58 -0800)]
[tests] Optional big-switch version of GC descriptor test.

This takes ages to compile with mcs.  See bug #10781.

11 years ago[tests] Test for GC descriptors - first draft.
Mark Probst [Thu, 28 Feb 2013 22:55:52 +0000 (14:55 -0800)]
[tests] Test for GC descriptors - first draft.

This runs for a long time and potentially uses lots of memory.  It's not integrated
in the test suite and must be run manually.

11 years agoMisc PCL-related API fixes.
Martin Baulig [Mon, 4 Mar 2013 17:40:21 +0000 (12:40 -0500)]
Misc PCL-related API fixes.

11 years agoMerge pull request #586 from awinters-fvs/awinters/sgen-los-sizeof-fix
Mark Probst [Mon, 4 Mar 2013 16:39:48 +0000 (08:39 -0800)]
Merge pull request #586 from awinters-fvs/awinters/sgen-los-sizeof-fix

[sgen] marksweep-conc 64-bit pointer arithmetic fix for segfault

11 years agoMerge pull request #589 from qhalid/master
Rodrigo Kumpera [Mon, 4 Mar 2013 16:32:21 +0000 (08:32 -0800)]
Merge pull request #589 from qhalid/master

Xamarin Bug 10879: Use of mono-sgen causes mono path detection fallback

11 years agoPrevent path fallback for mono-sgen and pedump
Chris Ball [Mon, 4 Mar 2013 16:16:42 +0000 (17:16 +0100)]
Prevent path fallback for mono-sgen and pedump

Test updated to allow "mono-sgen" and "pedump" binaries to "walk" the parent
directory to discover the install location of the mono runtime in the same
manner as the "mono" binary.

11 years agoMerge pull request #585 from mk8/master
Miguel de Icaza [Mon, 4 Mar 2013 16:13:10 +0000 (08:13 -0800)]
Merge pull request #585 from mk8/master

Bug 10233 fix proposal for Socket.BeginSendFIle

11 years agoMerge pull request #588 from Daniel15/bug-10872
Miguel de Icaza [Mon, 4 Mar 2013 16:12:23 +0000 (08:12 -0800)]
Merge pull request #588 from Daniel15/bug-10872

Fix bug #10872 (Expires and Last-Modified headers should use two-digit days)

11 years agoUse standard RFC1123 ("R") format specifier for Expires and Last-Modified headers...
Daniel Lo Nigro [Mon, 4 Mar 2013 11:13:10 +0000 (22:13 +1100)]
Use standard RFC1123 ("R") format specifier for Expires and Last-Modified headers. Fixes Xamarin bug #10872

11 years agoAdd missing target checks to ConstructorInfo::Invoke
Marek Safar [Mon, 4 Mar 2013 10:29:24 +0000 (11:29 +0100)]
Add missing target checks to ConstructorInfo::Invoke

11 years agoUse Activator instead of InvokeMember with incomplete target value
Marek Safar [Mon, 4 Mar 2013 10:27:22 +0000 (11:27 +0100)]
Use Activator instead of InvokeMember with incomplete target value

11 years agoRemove unused icall
Marek Safar [Mon, 4 Mar 2013 09:06:25 +0000 (10:06 +0100)]
Remove unused icall

11 years agoManually remove code which is disabled but compiler cannot remove automatically.
Marek Safar [Mon, 4 Mar 2013 07:49:15 +0000 (08:49 +0100)]
Manually remove code which is disabled but compiler cannot remove automatically.

11 years agoUse local invoke method instead of doing double virtual call dispatch
Marek Safar [Sun, 3 Mar 2013 21:23:48 +0000 (22:23 +0100)]
Use local invoke method instead of doing double virtual call dispatch

11 years agoUse faster array cloning
Marek Safar [Sun, 3 Mar 2013 21:22:21 +0000 (22:22 +0100)]
Use faster array cloning

11 years agoMaintain only single version of ordinal string comparers
Marek Safar [Sat, 2 Mar 2013 21:24:26 +0000 (22:24 +0100)]
Maintain only single version of ordinal string comparers

11 years agoDon't clone internally used era values
Marek Safar [Sat, 2 Mar 2013 17:54:30 +0000 (18:54 +0100)]
Don't clone internally used era values

11 years agoUse faster/smaller versions for some string comparisons
Marek Safar [Sat, 2 Mar 2013 15:39:17 +0000 (16:39 +0100)]
Use faster/smaller versions for some string comparisons

11 years agometadata/gc.c: Fix a warning when casting MonoInternalThread->tid.
Alex Rønne Petersen [Sat, 2 Mar 2013 09:40:22 +0000 (10:40 +0100)]
metadata/gc.c: Fix a warning when casting MonoInternalThread->tid.

11 years agoClient Socket close added
Torello Querci [Sat, 2 Mar 2013 07:31:14 +0000 (08:31 +0100)]
Client Socket close added

11 years agoSubtract sizeof LOSObject instead of LOSObject*
awinters-fvs [Sat, 2 Mar 2013 01:13:14 +0000 (17:13 -0800)]
Subtract sizeof LOSObject instead of LOSObject*

On 64-bit mono with marksweep-conc enabled, sgen_los_pin_object()
would mistakenly set the cardtable_mod_union pointer field to 1
due to the incorrect pointer math in sgen_los_header_for_object()

11 years agoFix the generation of stelemref wrappers in full-aot mode. Some wrappers were not...
Zoltan Varga [Sat, 2 Mar 2013 00:27:37 +0000 (01:27 +0100)]
Fix the generation of stelemref wrappers in full-aot mode. Some wrappers were not generated with the previous approach. Fixes #10826.

11 years agoErase the type of more fields so we can link away a few more types.
Rodrigo Kumpera [Fri, 1 Mar 2013 20:40:09 +0000 (15:40 -0500)]
Erase the type of more fields so we can link away a few more types.

11 years agoMobile should not have the COM types set.
Rodrigo Kumpera [Fri, 1 Mar 2013 18:24:18 +0000 (13:24 -0500)]
Mobile should not have the COM types set.

11 years agoFix the protocol version check in the TypeMirror.IsInitialized property.
Zoltan Varga [Fri, 1 Mar 2013 23:55:42 +0000 (00:55 +0100)]
Fix the protocol version check in the TypeMirror.IsInitialized property.

11 years agoAdd an IsInitialized property to TypeMirror which returns whenever the type initializ...
Zoltan Varga [Fri, 1 Mar 2013 23:52:54 +0000 (00:52 +0100)]
Add an IsInitialized property to TypeMirror which returns whenever the type initializer has ran.

11 years agoReduce XML processing time (GetAttribute was returning String.Empty, not null)
Sebastien Pouliot [Fri, 1 Mar 2013 21:36:41 +0000 (16:36 -0500)]
Reduce XML processing time (GetAttribute was returning String.Empty, not null)

11 years agoFix the lookup of some ctors in exception.c. Fixes #10774.
Zoltan Varga [Fri, 1 Mar 2013 21:33:07 +0000 (22:33 +0100)]
Fix the lookup of some ctors in exception.c. Fixes #10774.

11 years agoClean up test encoding
Marek Safar [Fri, 1 Mar 2013 21:08:56 +0000 (22:08 +0100)]
Clean up test encoding

11 years agoThrow exception instead of creating invalid object when remoting is disabled
Marek Safar [Fri, 1 Mar 2013 21:05:44 +0000 (22:05 +0100)]
Throw exception instead of creating invalid object when remoting is disabled

11 years agoRemove the unmaintained and incomplete alpha backend.
Zoltan Varga [Fri, 1 Mar 2013 19:27:07 +0000 (20:27 +0100)]
Remove the unmaintained and incomplete alpha backend.

11 years agoBuild correct version of System.Net for non-mobile profile
Marek Safar [Fri, 1 Mar 2013 17:55:49 +0000 (18:55 +0100)]
Build correct version of System.Net for non-mobile profile

11 years agoDefault to expression contextual keywords for repl
Marek Safar [Fri, 1 Mar 2013 17:37:39 +0000 (18:37 +0100)]
Default to expression contextual keywords for repl

11 years agoFix cross compilation under DISABLE_REMOTING
Rodrigo Kumpera [Fri, 1 Mar 2013 17:25:58 +0000 (12:25 -0500)]
Fix cross compilation under DISABLE_REMOTING

11 years agoDon't check for TransparentProxies on mobile as they don't work.
Rodrigo Kumpera [Fri, 1 Mar 2013 16:32:34 +0000 (11:32 -0500)]
Don't check for TransparentProxies on mobile as they don't work.

11 years agoRemotingServices::IsTransparentProxy doesn't work on mobile.
Rodrigo Kumpera [Fri, 1 Mar 2013 16:32:12 +0000 (11:32 -0500)]
RemotingServices::IsTransparentProxy doesn't work on mobile.

11 years agoDisable failing socket test
Marek Safar [Fri, 1 Mar 2013 16:12:58 +0000 (17:12 +0100)]
Disable failing socket test

11 years agoBring back ActivationServices::AllocateUninitializedClassInstance as this is used...
Rodrigo Kumpera [Fri, 1 Mar 2013 16:11:26 +0000 (11:11 -0500)]
Bring back ActivationServices::AllocateUninitializedClassInstance as this is used by the serialization machinery and we need it to work on mobile.

11 years agoFix again object::GetType ()
Rodrigo Kumpera [Fri, 1 Mar 2013 15:55:25 +0000 (10:55 -0500)]
Fix again object::GetType ()

11 years agoRevert "Fix object::GetType when remoting is enabled."
Rodrigo Kumpera [Fri, 1 Mar 2013 15:54:09 +0000 (10:54 -0500)]
Revert "Fix object::GetType when remoting is enabled."

This reverts commit 93e2d1dc48339be472300910e9290939ee253177.

11 years agoFix object::GetType when remoting is enabled.
Rodrigo Kumpera [Fri, 1 Mar 2013 15:52:03 +0000 (10:52 -0500)]
Fix object::GetType when remoting is enabled.

11 years agoFix ReadOnlyDictionary public api
Marek Safar [Fri, 1 Mar 2013 15:10:34 +0000 (16:10 +0100)]
Fix ReadOnlyDictionary public api

11 years agoTests update for mobile profile
Marek Safar [Fri, 1 Mar 2013 14:30:59 +0000 (15:30 +0100)]
Tests update for mobile profile

11 years agoFix for bug 10233 about Socket.BeginSendFile
Torello Querci [Fri, 1 Mar 2013 13:30:04 +0000 (14:30 +0100)]
Fix for bug 10233 about Socket.BeginSendFile

11 years agoMerge pull request #584 from LogosBible/bug10789-resubmit
Marek Safar [Fri, 1 Mar 2013 13:11:23 +0000 (05:11 -0800)]
Merge pull request #584 from LogosBible/bug10789-resubmit

System.Text.Decoder throws ArgumentOutOfRangeException when it should no...

11 years agoSystem.Text.Decoder throws ArgumentOutOfRangeException when it should not. Fixes...
Martin Potter [Fri, 1 Mar 2013 13:05:34 +0000 (05:05 -0800)]
System.Text.Decoder throws ArgumentOutOfRangeException when it should not. Fixes Bug #10789

Similar to previously reported bug #6404, according to the documentation at http://msdn.microsoft.com/en-us/library/h6w985hz.aspx, System.Text.Encoder throws ArgumentOutOfRangeExceptions when it should not. From the documentation, an ArgumentOutOfRangeException should be thrown when:

charIndex, charCount, byteIndex, or byteCount is less than zero.
-or-
The length of chars - charIndex is less than charCount.
-or-
The length of bytes - byteIndex is less than byteCount.

To reproduce, run the following code:

int charsUsed, bytesUsed;
bool completed;
byte[] bytes = new byte[4096];
char[] chars = new char[4096];
System.Text.Encoding.UTF8.GetDecoder().Convert(bytes, 0, 0, chars, 4096, 0, false, out bytesUsed, out charsUsed, out completed);

Expected:

The code runs, charsUsed equals zero, bytesUsed equals zero and completed is true.

Actual:

Mono throws an ArgumentOutOfRangeException for charIndex.

There are also other behavioral differences between Mono and Microsoft's implementation for the GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) method, such as:

byte[] bytes = new byte[4096];
char[] chars = new char[10];
int charactersWritten = System.Text.Encoding.UTF8.GetDecoder().GetChars(bytes, 0, 0, chars, 10, false);

On Mono, this results in an ArgumentOutOfRangeException for charIndex, where for Microsoft charactersWritten = 0.

Similarly:

byte[] bytes = new byte[4096];
char[] chars = new char[10];
int charactersWritten = System.Text.Encoding.UTF8.GetDecoder().GetChars(bytes, 0, 4096, chars, 10, false);

On Mono, this results in the same ArgumentOutOfRangeException for charIndex, where Microsoft throws and ArgumentException. since "chars does not have enough capacity from charIndex to the end of the array to accommodate the resulting characters."

11 years agoMerge pull request #583 from TalAloni/master
Marek Safar [Fri, 1 Mar 2013 09:18:38 +0000 (01:18 -0800)]
Merge pull request #583 from TalAloni/master

Make x64 compilation work out of the box

11 years agoMake x64 compilation work out of the box
TalAloni [Fri, 1 Mar 2013 09:13:38 +0000 (11:13 +0200)]
Make x64 compilation work out of the box

Change the default projects that are compiled for x64

11 years agoMerge pull request #581 from TalAloni/master
Marek Safar [Fri, 1 Mar 2013 07:31:03 +0000 (23:31 -0800)]
Merge pull request #581 from TalAloni/master

System.IO.Path bugfix

11 years agoMerge pull request #579 from LogosBible/bug10788
Marek Safar [Fri, 1 Mar 2013 07:27:31 +0000 (23:27 -0800)]
Merge pull request #579 from LogosBible/bug10788

UTF8Decoder.GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) can w...

11 years agoAdded tests to PathTest.cs
TalAloni [Fri, 1 Mar 2013 07:04:11 +0000 (09:04 +0200)]
Added tests to PathTest.cs

11 years agoWhen serializing floats and doubles, use the InvariantCulture, so that floats are...
Miguel de Icaza [Sun, 24 Feb 2013 17:15:26 +0000 (12:15 -0500)]
When serializing floats and doubles, use the InvariantCulture, so that floats are always stored in Json format, not the locale-specific format;   As reported on irc

11 years agoImplement a fast version of mono_get_lmf_addr () on ARM by inlining the call to pthre...
Zoltan Varga [Fri, 1 Mar 2013 04:01:19 +0000 (05:01 +0100)]
Implement a fast version of mono_get_lmf_addr () on ARM by inlining the call to pthread_getspecific () into the managed to native wrappers.

11 years agoAdd some support for calling JIT icalls directly in full-aot mode.
Zoltan Varga [Fri, 1 Mar 2013 03:09:03 +0000 (04:09 +0100)]
Add some support for calling JIT icalls directly in full-aot mode.

11 years agoUpdate Path.cs
TalAloni [Fri, 1 Mar 2013 00:47:07 +0000 (02:47 +0200)]
Update Path.cs

Fixed Path.GetDirectoryName() bug when path is in the following form: 'C:filename'

11 years agoUTF8Decoder.GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) can write past...
Martin Potter [Fri, 1 Mar 2013 00:26:02 +0000 (16:26 -0800)]
UTF8Decoder.GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) can write past end of char[]. Fixes Bug#10788

UTF8Decoder.GetChars(Byte[], Int32, Int32, Char[], Int32, Boolean) eventually calls into UTF8Encoding.InternalGetChars, which does not perform any bounds checking on the passed in char* until after the first byte > 0x80 is encountered. For instance:

byte[] bytes = new byte[4096];
char[] chars = new char[10];
int charactersWritten = System.Text.Encoding.UTF8.GetDecoder().GetChars(bytes,
0, 4096, chars, 9, false);

will result in no errors and charactersWritten = 4096.

11 years agoFix the handling of unresolved pinvoke methods in full-aot mode.
Zoltan Varga [Thu, 28 Feb 2013 23:22:50 +0000 (00:22 +0100)]
Fix the handling of unresolved pinvoke methods in full-aot mode.

11 years agoAdd System.Collections.ObjectModel.ReadOnlyDictionary.
Martin Baulig [Fri, 15 Feb 2013 02:23:00 +0000 (03:23 +0100)]
Add System.Collections.ObjectModel.ReadOnlyDictionary.