I'm getting "access violation while writing" error in the below code while putting null byte in the string last character checked via Ollydbg, Can anyone please help in in sorting this out, thanks
[SECTION .text]
global _start
_start:
jmp short stuff
code:
pop esi
xor eax,eax
mov byte [esi + 17],al ; put a null byte byte on [esi + 17]
stuff:
call code
db 'This is my string#'
See Question&Answers more detail:os