Re: [Mono-dev] Array.Copy endian issue?

2014-01-29 Thread Bassam Tabbara
A little more details. If I remove the FastCopy call in Array.Copy I am unable 
to reproduce this.

// if (FastCopy (sourceArray, sourceIndex, 
destinationArray, destinationIndex, length))
//   return;

Attached is a test case but it needs to be run on a ARM device with the same 
version of Linux. Happy to provide access to a box if needed.

I’ll open a Xamarin bug too.



Thanks!
Bassam

On Jan 29, 2014, at 3:53 PM, Bassam Tabbara  wrote:

> Hello,
>
> I’m chasing a bug while parsing the machine.config XML file, and I’ve 
> narrowed it down to Array.Copy performing the wrong copy. Here’s an example:
>
> before copy ' after copy '< edcsirt'
>
> The buffer is altered after its copied. This seems to happen only on newer 
> versions of linux (3.4.6) on an armv5tel device. When running linux 2.6 I 
> don’t see this.
>
> Any thoughts on what might be causing this?
>
> Thanks!
> Bassam
> ___
> Mono-devel-list mailing list
> Mono-devel-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list



Program.cs
Description: Program.cs
___
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[Mono-dev] Array.Copy endian issue?

2014-01-29 Thread Bassam Tabbara
Hello,

I’m chasing a bug while parsing the machine.config XML file, and I’ve narrowed 
it down to Array.Copy performing the wrong copy. Here’s an example:

before copy 'http://lists.ximian.com/mailman/listinfo/mono-devel-list