Rocksolid Light

groups  faq  privacy  How to post  login

Message-ID:  

The human race has one really effective weapon, and that is laughter. -- Mark Twain


rocksolid / ger.ct / Win32's least stack size is 64kB, and still overcommitted

SubjectAuthor
o Win32's least stack size is 64kB, and still overcommittedBonita Montero

1
Subject: Win32's least stack size is 64kB, and still overcommitted
From: Bonita Montero
Newsgroups: ger.ct
Organization: A noiseless patient Spider
Date: Thu, 16 May 2024 18:52 UTC
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!raubtier-asyl.eternal-september.org!.POSTED!not-for-mail
From: Bonita.M...@gmail.com (Bonita Montero)
Newsgroups: ger.ct
Subject: Win32's least stack size is 64kB, and still overcommitted
Date: Thu, 16 May 2024 20:52:10 +0200
Organization: A noiseless patient Spider
Lines: 33
Message-ID: <v25kkp$1na5a$1@raubtier-asyl.eternal-september.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Thu, 16 May 2024 20:52:10 +0200 (CEST)
Injection-Info: raubtier-asyl.eternal-september.org; posting-host="6d01033b28fc418d0d4d9ba75daa2570";
logging-data="1812650"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18y0/RQnRVHMg+jXA2Xts6h7eamIuGb5VI="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:sD1Z4nHYtrL4uvRE+MlTJcpzcgM=
Content-Language: de-DE
View all headers

#include <Windows.h>
#include <iostream>

using namespace std;

int main()
{ LPTHREAD_START_ROUTINE thr = []( LPVOID lpvThreadParam ) -> DWORD
{
ULONG_PTR ulpLower, ulpUpper;
GetCurrentThreadStackLimits( &ulpLower, &ulpUpper );
MEMORY_BASIC_INFORMATION mbi;
for( char *p = (char *)ulpLower; VirtualQuery( p, &mbi, sizeof mbi )
&& mbi.AllocationBase == (void *)ulpLower; p += mbi.RegionSize )
{
cout << mbi.RegionSize / 0x400 << "kB";
if( mbi.State == MEM_RESERVE )
cout << ", reserved";
else
{
auto probe = [&]( DWORD dw ) { return (mbi.Protect & dw) == dw; };
if( probe( PAGE_READWRITE ) )
cout << ", r/w";
if( probe( PAGE_GUARD ) )
cout << ", guard";
}
cout << endl;
}
return 0;
};
WaitForSingleObject( CreateThread( nullptr, 0x10000, thr, nullptr,
STACK_SIZE_PARAM_IS_A_RESERVATION, nullptr ), INFINITE );
}


rocksolid / ger.ct / Win32's least stack size is 64kB, and still overcommitted

1
server_pubkey.txt

rocksolid light 0.9.12
clearnet tor