c++ - Debugging Stack corruption methods -
i'm facing stack corruption breakpoints right before @ return of wwinmain
function.. can suggest me way, or tips of how debug stack corruption? (preferably in windbg)
i know corruption occurs in procedure wrote in masm program, stack seems fine during whole procedure. rsp
register has needs during whole time..
perform these in order:
- compile high level warning, , fix warnings
- run code analysis on project, , fix warnings - specially 1 says word buffer/array/stack etc.
- if corruption still not fixed, reduce function size (comment out upper or lower part of function). don't
return
- corrupting stack buffer may still allocated - commenting out omit bad-stack program code. - refactor
wwinmain
- divide sub tasks (functions). 1 of function fail because of stack, , you'll locate real issue.
Comments
Post a Comment