Marek Knápek
banner
marekknapek.bsky.social
Marek Knápek
@marekknapek.bsky.social
Level 33 C++ sourcerer. https://about.me/marek.knapek
Does C++ have destructive move yet?
November 8, 2025 at 3:34 PM
nt!KeBugCheckEx
nt!ExFreeHeapPool
nt!ExFreePool
NETIO!KfdFilterFreeNotify
NETIO!KfdCommitTransaction
NETIO!IoctlKfdCommitTransaction
tcpip!KfdDispatchDevCtl
tcpip!NlDispatchDeviceControl
nt!IofCallDriver
nt!IopSynchronousServiceTail
nt!IopXxxControlFile
nt!NtDeviceIoControlFile
October 22, 2025 at 7:26 AM
CRASH

KeBugCheckEx
VerifierBugCheckIfAppropriate+0xe0
VerifierFreeTrackedPool+0x41
ExFreeHeapPool+0x186916
ExFreePool+0x9
MiFinishVadDeletion+0x351
MiDeleteVad+0x238
MiUnmapVad+0x49
MiCleanVad+0x2f
MmCleanProcessAddressSpace+0xfc
PspRundownSingleProcess+0x207
PspExitThread+0x606
October 15, 2025 at 12:48 AM
Love this. I have been writing NatVis files, and before that, AutoExp.dat files, for 15 YEARS. It helps to understand other people's code. It TREMENDOUSLY helps you to fix your own bugs. youtu.be/nFQ4fLDlbFs
Braden Ganetsky - Debugger Visualizers to Make Your Code Accessible
YouTube video by CppNorth
youtu.be
October 14, 2025 at 5:54 PM
This happens when you send a cp1252 encoded text into a device that understands only a cp852 encoded text. cp852 is otherwise known as Latin-2.
October 3, 2025 at 8:33 PM
JavaScript: Everything is a callback. Not a function pointer callback, but a closure object callback.

Also: They already have a Uint8Array data type, but they lack any memcmp-like function.
October 3, 2025 at 5:02 AM
WoW, Firefox's WASM is faster on my ARM64 Android phone than on my x64 desktop computer. Put some big file to my SHA-512 calculator and see the speed for yourself. marekknapek.github.io/hash/
October 1, 2025 at 12:55 AM
Reposted by Marek Knápek
It's <s>so cool</s> that in 2025 Microsoft still accidentally installs vfcompat.dll and appverifUI.dll in the root of the C drive. I assume that this comes from installing the Windows 11 SDK as part of Visual Studio. This feels very professional
September 23, 2025 at 10:26 PM
What is the value of QueryPerformanceFrequency on your computer? I thought that it is almost always 10 MHz, but on my computer it is 100 MHz.
September 24, 2025 at 5:51 AM
TIL: In Emscripten/WASM you can not pass a pointer to a stack variable (eg string buffer) out to JS environment (eg to console.log).
September 16, 2025 at 7:57 PM
The concept of Certificate Authorities is a joke. It always been. Any CA can issue cert for any domain. Be it by mistake or maliciously. Certificate transparency logs caught this, but humans didn't notice until much later. Does DANE solve this? blog.cloudflare.com/unauthorized...
Addressing the unauthorized issuance of multiple TLS certificates for 1.1.1.1
Unauthorized TLS certificates were issued for 1.1.1.1 by a Certification Authority without permission from Cloudflare. These rogue certificates have now been revoked. Read our blog to see how this cou...
blog.cloudflare.com
September 4, 2025 at 11:50 PM
TIL: const in function parameters in C++ does matter, for name mangling at least.
August 18, 2025 at 7:58 PM
This is funny.
July 7, 2025 at 10:03 PM
Windows kernel experts: I found my machine crashed. Is there bug when disconnecting something? Or is some attacker trying to put a break-point into my computer? pastebin.com/j4sBU4is
nt!KeBugCheckExnt!KiBugCheckDispatch+0x69nt!KiDoubleFaultAbort+0x31cnt!Rtl - Pastebin.com
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
pastebin.com
June 3, 2025 at 5:36 PM
JavaScript's window.crypto.subtle does not have streaming support. What if I want to hash several GB big file? Should I read it all at once into memory? Who designs these things? They don't even look at existing practice before standardization. JavaScript is language for babies.
March 26, 2025 at 12:56 AM
Why is everybody hating on Windows? They are maintaining API backwards compatibility for over 30 years. Try using OpenSSL, what a joke. Copy & pasted code from their own documentation does not even compile.
March 21, 2025 at 10:28 AM
Reposted by Marek Knápek
Clearly I haven't gotten enough of my 🍑 kicked by the standards process. So, here we go, doing Big Work all over again. First of many larger changes for C that should've been done 25 years ago.

The Defer Technical Specification: It Is Time | Björkus Dorkus | The Pasture | thephd.dev/c2y-the-defe...
The Defer Technical Specification: It Is Time
After the Graz, Austria February 2025 WG14 Meeting, I am now confident in the final status of the defer TS, and it is now time.
thephd.dev
March 16, 2025 at 4:30 AM
Microsoft naming conventions are weird: WaitForMultipleObjectsEx_SO_TOLERANT
March 9, 2025 at 8:35 PM
Doing templates in C (macros everywhere). This is new for me: number of sections exceeded object file format limit: compile with /bigobj
February 27, 2025 at 6:29 PM
Guess what compiler defines the `__STDC_VERSION__` macro to the value of `202311L` aka C23 and does not understand the `bool`, `true` nor `false` keywords? It is the @visualstudio.bsky.social when in `/std:clatest` mode.
February 16, 2025 at 4:10 PM
Rijndael-256 being NIST approved soon (next year)? Not to be confused with AES-256.
December 28, 2024 at 5:35 AM
I found yet another rewrite of Dependency Walker! Please give it a try and fill bug reports while the author is still actively working on it. github.com/hfiref0x/Win...
GitHub - hfiref0x/WinDepends: Windows Dependencies
Windows Dependencies. Contribute to hfiref0x/WinDepends development by creating an account on GitHub.
github.com
November 25, 2024 at 2:00 AM