search for: regionsize

Displaying 10 results from an estimated 10 matches for "regionsize".

Did you mean: region_size
2012 Jan 07
0
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
Hi Ruben, > I see I missed some curly braces. I also modified spacing a tiny bit. Doesn't seem so. E.g. you have: + if ( !VirtualQuery(addr, &b, sizeof(b)) ) + exit(1); + if( !VirtualProtect(b.BaseAddress, b.RegionSize, PAGE_EXECUTE_READWRITE, &b.Protect) ) Add space after "if". Do not put spaces after "(" and before ")". Same for other places in the file. -- With best regards, Anton Korobeynikov Faculty of Mathematics and Mechanics, Saint Petersburg State University
2012 Jan 07
3
[LLVMdev] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
...fer & (-4095)); char* end = (char*)((uintptr_t)(&execution_buffer[128+4096]) & (-4095)); +#if defined(_WIN32) + DWORD dummy_oldProt; + MEMORY_BASIC_INFORMATION b; + if ( !VirtualQuery(start, &b, sizeof(b)) ) + return 1; + if ( !VirtualProtect(b.BaseAddress, b.RegionSize, PAGE_EXECUTE_READWRITE, &b.Protect) ) +#else if ( mprotect(start, end-start, PROT_READ|PROT_WRITE|PROT_EXEC) != 0 ) +#endif return 1; // verify you can copy and execute a function @@ -53,7 +70,8 @@ __clear_cache(execution_buffer, &execution_buffer[128]); pfun...
2010 Sep 20
1
Dynamic forking in Win32
...tf( "Before:\n" "Process basic info: 0x%08X\n" " BaseAddress: 0x%08X\n" " AllocationBase: 0x%08X\n" " AllocationProtect: 0x%08X\n" " RegionSize: 0x%08X\n", basic_info.BaseAddress, basic_info.AllocationBase, basic_info.AllocationProtect, basic_info.RegionSize); printf(" State: 0x%08X\n", basic_info.State); print_flags(basic_in...
2012 Jan 07
1
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
...fer & (-4095)); char* end = (char*)((uintptr_t)(&execution_buffer[128+4096]) & (-4095)); +#if defined(_WIN32) + DWORD dummy_oldProt; + MEMORY_BASIC_INFORMATION b; + if ( !VirtualQuery(start, &b, sizeof(b)) ) + return 1; + if ( !VirtualProtect(b.BaseAddress, b.RegionSize, PAGE_EXECUTE_READWRITE, &b.Protect) ) +#else if ( mprotect(start, end-start, PROT_READ|PROT_WRITE|PROT_EXEC) != 0 ) +#endif return 1; // verify you can copy and execute a function Index: test/Unit/enable_execute_stack_test.c ================================================...
2012 Jan 07
2
[LLVMdev] [llvm-commits] [PATCH][Compiler-rt] Windows implementation of mmap functionality in clear_cache_test and enable_execute_stack_test
...n at korobeynikov.info> > Hi Ruben, > > > I see I missed some curly braces. I also modified spacing a tiny bit. > Doesn't seem so. E.g. you have: > > + if ( !VirtualQuery(addr, &b, sizeof(b)) ) > + exit(1); > + if( !VirtualProtect(b.BaseAddress, b.RegionSize, > PAGE_EXECUTE_READWRITE, &b.Protect) ) > Add space after "if". Do not put spaces after "(" and before ")". Same > for other places in the file. > OK, I followed the rules you set forth here. But the files followed different ones, hence my confusion....
2006 Oct 06
13
Need some help with latest win32-mmap
Hi all, I''ve got the latest win32-mmap code checked into CVS. Unfortunately, it seems that I''m not able to open an existing mapping and retrieve set data. Below is a simple example that seems like it ought to work but doesn''t. Any ideas? # map1.rb require ''win32/mmap'' include Win32 mmap = MMap.new(:name => ''alpha'', :size
2004 Feb 17
1
RCMD SHLIB == Couldn't reserve space for cygwin's heap, Win32 ?
...can't load the DLL. I keep getting the following error: > dyn.load( "optflikam.dll" ) 5 [main] ? 4012 init_cheap: Couldn't reserve space for cygwin's heap, Win32 error 487 c:\program files\r\rw1081\bin\Rterm.exe (4012): *** AllocationBase 0x0, BaseAddress 0x61670000, RegionSize 0x1050000, State 0x10000 I thought it might have something to do with the compiler, so I looked at the version of cygwin's gcc: C:\optflikam>gcc --version gcc (GCC) 3.3.1 (cygming special) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying c...
2004 Feb 17
1
RCMD SHLIB == Couldn't reserve space for cygwin's heap, Win32 ?
...can't load the DLL. I keep getting the following error: > dyn.load( "optflikam.dll" ) 5 [main] ? 4012 init_cheap: Couldn't reserve space for cygwin's heap, Win32 error 487 c:\program files\r\rw1081\bin\Rterm.exe (4012): *** AllocationBase 0x0, BaseAddress 0x61670000, RegionSize 0x1050000, State 0x10000 I thought it might have something to do with the compiler, so I looked at the version of cygwin's gcc: C:\optflikam>gcc --version gcc (GCC) 3.3.1 (cygming special) Copyright (C) 2003 Free Software Foundation, Inc. This is free software; see the source for copying c...
2013 Jun 25
0
[LLVMdev] [PATCH] Windows implementation of enable_execute_stack
...plementation. Neither applies to Win32, so > I ifdef'ed the whole thing. > > >> > + MEMORY_BASIC_INFORMATION b; >> > + >> > + if (!VirtualQuery(addr, &b, sizeof(b))) >> > + exit(1); >> > + if (!VirtualProtect(b.BaseAddress, b.RegionSize, >> PAGE_EXECUTE_READWRITE, &b.Protect)) >> > + exit(1); >> > +#endif /* _WIN32 */ >> > } >> >> Aside from that, patch LGTM. >> > > Great! > > Ruben > > >> >> ~Aaron >> > > Friendly ping :) -------...
2015 Jan 24
0
[ANNOUNCE] xorg-server 1.16.99.902
...opersmith (22): Add -iglx & +iglx to Xserver.man unchecked malloc may allow unauthed client to crash Xserver [CVE-2014-8091] dix: integer overflow in ProcPutImage() [CVE-2014-8092 1/4] dix: integer overflow in GetHosts() [CVE-2014-8092 2/4] dix: integer overflow in RegionSizeof() [CVE-2014-8092 3/4] dix: integer overflow in REQUEST_FIXED_SIZE() [CVE-2014-8092 4/4] dri2: integer overflow in ProcDRI2GetBuffers() [CVE-2014-8094] dbe: unvalidated lengths in DbeSwapBuffers calls [CVE-2014-8097] Xi: unvalidated lengths in Xinput extension [CVE-2014-809...