Skip to main content
edited tags
Link
lyxal
  • 34.3k
  • 2
  • 64
  • 141
Source Link
0x9c
  • 49
  • 1

Shortest way to cause a seg fault at 0x9c?

In honour of CrowdStrike's exception at 0x9c, what's the shortest way (character-wise) to cause a segfault by dereferencing address 0x9c?

The best I can come up with is:

int main(){*(int*)156=0;}

Rules:

  • It must be valid C++ (so no removing the return type int of main)
  • It must crash the program