futureelite7
futureelite7

Reputation: 11502

What does mov 0x40(%eax),%eax mean?

What does

0x01b55ee2  <+0014>  mov    0x40(%eax),%eax

mean? How should I interpret 0x40(), as I am having a problem with my code crashing in that location. The contents of the %eax register is 0.

Upvotes: 0

Views: 378

Answers (1)

user149341
user149341

Reputation:

The code you're looking at treats %eax + 0x40 as an address, and moves 32 bits from that address to %eax. If %eax is zero, this means that what you're dealing with is basically a NULL pointer dereference.

Upvotes: 3

Related Questions