摘要: 用IDA分析程序时,经常可以看到__alloc_probe(malloc.h中的alloca函数)这个函数,这个函数有什么用呢!现在分析一下这个函数。seg000:004042E0 __alloca_probe proc nearseg000:004042E0 arg_0 = byte ptr 4seg000:004042E0seg000:004042E0 push ecxseg000:004042E1 cmp eax, 1000h ; 判断申请的大小是为小于1000hseg000:004042E6 lea ecx, [esp+4+arg_0] ; 取得原来参数在栈中的地址,用于用来提升栈空间 阅读全文
posted @ 2012-07-13 12:47 keepfocus 阅读(1479) 评论(0) 推荐(0) 编辑