Singly Linked Lists and Memory Alignment – Access Violation Exception

I came across a interesting case, whereby a singly linked list wasn’t correctly aligned for the MEMORY_ALLOCATION_ALIGNMENT boundary on x64 systems. My analysis and explanation of why it may have happened is within the thread, which will be posted below with some MSDN API documentation for you to study.

BSOD 0x0000001E, 1D, 3B on Computer Shutdown

Additional Information:

InterlockedFlushSList 

_aligned_malloc

How to use Interlocked Singly Linked Lists?

I’ve also opened a thread at Sysnative, regarding if it is possible to XOR a Singly Linked List, since I noticed a XOR Assembly instruction in one of the instructions.

[Question] Possible XOR a Singly Linked List?


Advertisements

About 0x14c

I'm a Computer Science student and writer. My primary interests are Graph Theory, Number Theory, Programming Language Theory, Logic and Windows Debugging.
This entry was posted in Debugging. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s