Advertisement
Guest User

VS2015 check_stack(off)

a guest
Feb 22nd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #pragma check_stack(off)
  4. void main() {
  5. char buff[500];
  6. sprintf_s(buff, sizeof(buff), "%d", 309230923);
  7. return 0;
  8. }
  9. #pragma check_stack()
  10.  
  11. quicktest!main:
  12. 000b1040 55 push ebp
  13. 000b1041 8bec mov ebp,esp
  14. 000b1043 81ecf8010000 sub esp,1F8h
  15. 000b1049 a104300b00 mov eax,dword ptr [quicktest!__security_cookie (000b3004)]
  16. 000b104e 33c5 xor eax,ebp
  17. 000b1050 8945fc mov dword ptr [ebp-4],eax
  18. 000b1053 684b7d6e12 push 126E7D4Bh
  19. 000b1058 68f8200b00 push offset quicktest!`string' (000b20f8)
  20. 000b105d 8d8508feffff lea eax,[ebp-1F8h]
  21. 000b1063 68f4010000 push 1F4h
  22. 000b1068 50 push eax
  23. 000b1069 e8a2ffffff call quicktest!sprintf_s (000b1010)
  24. 000b106e 8b4dfc mov ecx,dword ptr [ebp-4]
  25. 000b1071 83c410 add esp,10h
  26. 000b1074 33cd xor ecx,ebp
  27. 000b1076 33c0 xor eax,eax
  28. 000b1078 e804000000 call quicktest!__security_check_cookie (000b1081)
  29. 000b107d 8be5 mov esp,ebp
  30. 000b107f 5d pop ebp
  31. 000b1080 c3 ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement