Re: RtlFillMemory fails on block sizes over 0x7fffffff

2015-07-29 Thread Corinna Vinschen
On Jul 29 14:11, Petrovski, Roman wrote: > Hi, just ran into a problem which boils down to the following at least with > Windows 7: > > char *p = (char*)malloc(0x8000UL);//works fine, allocates memory > as requested > memset(p, 0, 0x8000UL); //Watch process segf

RE: RtlFillMemory fails on block sizes over 0x7fffffff

2015-07-29 Thread Petrovski, Roman
22 To: cygwin-patches@cygwin.com Subject: Re: RtlFillMemory fails on block sizes over 0x7fff On Jul 29 14:11, Petrovski, Roman wrote: > Hi, just ran into a problem which boils down to the following at least with > Windows 7: > > char *p = (char*)malloc(0x8000UL);//wor

Re: RtlFillMemory fails on block sizes over 0x7fffffff

2015-07-29 Thread Corinna Vinschen
On Jul 29 16:29, Petrovski, Roman wrote: > Sure, in case you decide to go with the patch meanwhile, please use > the one attached to this email. The original wrongly uses n instead of > size for copying the memory. I applied a patch which changes memset, memmove, memcpy, wmemset, wmemmove and wme