3_14_1(magic_Segmentation_fault_2)
来源:互联网 发布:武汉纬创软件怎么样 编辑:程序博客网 时间:2024/06/03 01:42
http://download.csdn.net/detail/doublewei1/4140866
#include<stdio.h>
#include<stdlib.h>
#define GET_ESP(esp) do{ \
asm volatile("movl %%esp,%0\n\t":"=m"(esp)); \
}while(0)
#define K 1024
int main(){
char*c;
int i=0;
unsigned long esp;
GET_ESP(esp);
printf("Current stack pointer is %#x\n",esp);
while(1){
c=(char*)esp-i*K;
*c='a';
GET_ESP(esp);
printf("esp=%#x,overflow %dK\n",esp,i);
i++;
}
}
- 3_14_1(magic_Segmentation_fault_2)
- 3
- 3
- 3
- 3
- 3
- (3)
- 3
- 3
- 3
- 3
- 3
- 3
- 3
- 3
- 3
- 3
- --3
- 3_13_DOUBLEWEI 基本功练习のfile1_to_file2
- sysoper身份用户权限:不能查看数据字典表(引用)
- oracle锁表与解表
- IP协议号大全(网络协议号)
- 3_13_(Segmentation_fault_1)
- 3_14_1(magic_Segmentation_fault_2)
- 常用默认端口号
- vector+iterator
- 3_14_2(Segmentation_fault_3)
- 3_14_3(Segmentation_fault_4)
- svn服务器配置
- JS中match、replace方法中使用正则表达式
- 妙语连珠--每天一点点
- MySQL 创建数据库、创建表、插入字段及其与通过Web 服务器交互时注意事项