Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

60%
+1 −0
Challenges Bytes to Segfault

x86 machine code, 3 bytes 31 FF AB Try it online! In assembly: xor edi, edi stosd Set EDI to 0 by XORing it with itself, then use the 1-byte stosd instruction to try to write EAX to tha...

posted 13d ago by m90‭

Answer
#1: Initial revision by user avatar m90‭ · 2025-04-13T16:46:09Z (13 days ago)
# x86 machine code, 3 bytes
    31 FF AB
[Try it online!](https://tio.run/##PY9PSwMxEMXPmU8xphQmtpVSxUPr@g28eCqIh5g/uwO7iWy2Gin96sasoJfHG@b9HjNm0xpTik4DEj5LAr8XOY7oLK9nAZGmmCwoieoAH5EteqoOFhxMf7IOH9JkOd50jwAcJhw0B1JwBvE@1tmTfNKm4@DQROv2srJizmVscFu9jXj@S@JyuzvKNRKdQuI2OIum0@O18uolr1av6nDBz457h5TxqsHbuewfpiXj29fkkqoVeV6B@L31Usq38b1uU9kM93dV6rtNpVz/Aw "C (gcc) – Try It Online")

In assembly:
````
	xor edi, edi
	stosd
````
Set EDI to 0 by XORing it with itself, then use the 1-byte `stosd` instruction to try to write EAX to that address while advancing EDI.