stackoverfolow overf low堆栈overf低这是什么意思

博客访问: 15882
博文数量: 16
博客积分: 351
博客等级: 一等列兵
技术积分: 110
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: C/C++
stack-smashing protector(SSP) 是IBM给gcc3.4开发的一个补丁 。& gcc4.1之后默认就支持这个功能。1. 代码int main( int argc , char **argv )
&&&&char buf[8];
&&&&if( argc > 1 ){
&&&&&&&&char *s = argv[1];
&&&&&&&&char *d = buf;
&&&&&&&&while( *s != '\0' )
&&&&&&&&&&&&*d++ = *s++;
&&&&return 0;
}2. 编译gcc -fstack-protector -o overf test_46.c3. 运行[root@localhost helloworld]# ./overf *** stack smashing detected ***: ./overf terminated======= Backtrace: =========/lib/libc.so.6(__fortify_fail+0x48)[0x2d4918]/lib/libc.so.6(__fortify_fail+0x0)[0x2d48d0]./overf[0x8048451]/lib/libc.so.6(__libc_start_main+0xe5)[0x1ed6d5]./overf[0x8048351]======= Memory map: ========11000 r-xp :00 0&&&&&&&&& [vdso]001b0 r-xp :01 951999&&&& /lib/ld-2.9.so001d0 r--p :01 951999&&&& /lib/ld-2.9.so001d0 rw-p :01 951999&&&& /lib/ld-2.9.so001d0 r-xp :01 952000&&&& /lib/libc-2.9.so47000 r--p :01 952000&&&& /lib/libc-2.9.so48000 rw-p :01 952000&&&& /lib/libc-2.9.so4b000 rw-p :00 0 5a000 r-xp :01 952005&&&& /lib/libgcc_s-4.3.2-.so.15b000 rw-p :01 952005&&&& /lib/libgcc_s-4.3.2-.so.149000 r-xp :01 753683&&&& /home/xuk/helloworld/overf4a000 rw-p :01 753683&&&& /home/xuk/helloworld/overf29000 rw-p :00 0&&&&&&&&& [heap]b7f900 rw-p b7f 0 bfc8b000-bfca0000 rw-p bffeb000 00:00 0&&&&&&&&& [stack]已放弃
阅读(1068) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。英语 填空A.proposal B.worthwhile C.career D.efficient E.turn overF.accomplish G.handle H.rare I.package J.as a result 1.Young as she is,Mary is very good at __________ difficult customers.2.He is a man of great ability.I am sure that a lot will be _________ if he is elected chairman of th3.The boat __________,throwing the boys into the water.4.Since you are so busy,you do need a very ___________ secretary.5.The old lady likes to be alone,and only goes out on very __________ occasions.6.The mayor put forward a ___________ to improve public transportation.7.Enid considered teaching a _____________ career.8.Just now I saw George hurrying upstairs with a large _________ of books under his arm.9.New machines were introduced into the factory.__________,not only were time and energy saved but p10.Sam took this new job because he felt that the _____________ prospects were much better.
驼驼路过et
1/G2/F3/E4/D5/H6/A7/B8/I9/J10/C
为您推荐:
其他类似问题
1G 2F 3E 4D 5H 6A 7B 8I 9J 10C
扫描下载二维码Stack overflow at line:0是什么意思?如何解决
作者:佚名
字体:[ ] 来源:互联网 时间:10-04 10:04:13
昨天在打开网站时提示:“Stack overflow at line:0”对话框,不知是什么意思,网站都打不开了,所以到网上查了一下,下面就问大家介绍。
昨天在打开网站时提示:&Stack overflow at line:0&对话框,不知是什么意思,网站都打不开了,所以到网上查了一下,下面就问大家介绍。
Stack overflow at line:0是什么意思?当程序运行到第0行时,堆栈溢出。
有可能是你的内存不能负荷打开这样的网页了,造成了&堆栈的益出&
建议你杀杀毒或者用优化大师清理清理电脑。
或者是说你的js代码有死循环或者什么严重消耗资源的代码被IE提前检测出来..就会出现此对话框.function alert(){ alert(&1&); }此函数明显为无限递归函数..是一个死循环..
方法一造成了&堆栈的益出&,在IE的【Internet选项】的【高级】里禁用脚本调试,
试试 开始...运行,入REGSVR32 URLMON.DLL,回车后重启系统,
然后进入IE的&工具&&&Internet选项&& &程序&,
单击&重置Web设置&按纽就行啦
以上是某神人的答案
我试了很有用,不过我是直接【禁用脚本调试】然后【重置】的,因为中间的看不懂,但成功了
而且我家的【重置】是在IE的&工具&&&Internet选项&& &高级&,里的
方法二很简单的一个问题,浏览器如果出现&stack overflow at line:0&并且有些图片无法显示的问题,是由于注册表被串改了。这是由于pngfilt.dll问题。 解决办法:开始菜单--程序--附件--记事本 ,打开记事本把下面的东西复制进去,随便取个名字,然后把后缀名改成.reg,另存为到桌面,然后开打点&是& OK 问题解决~ 是你的内存不能负荷打开这样的网页了,造成了&堆栈的益出&,在IE的选项的高级项里禁用脚本调试,试试 开始...运行,入REGSVR32 URLMON.DLL,回车后重启系统,然后进入IE的&工具&&&Internet选项&&&程序&,单击&重置Web设置&按钮即可 代码如下: Windows Registry Editor Version 5.00 ;PNG file association fix for Windows XP ;Created on May 17, 2007 by Ramesh Srinivasan [HKEY_CLASSES_ROOT\.PNG] "PerceivedType"="image" @="pngfile" "Content Type"="image/png" [HKEY_CLASSES_ROOT\.PNG\PersistentHandler] @="{098f2470-bae0-11cd-b579-08002b30bfeb}" [HKEY_CLASSES_ROOT\pngfile] @="PNG Image" "EditFlags"=dword: "FriendlyTypeName"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,\ 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,\ 32,00,5c,00,73,00,68,00,69,00,6d,00,67,00,76,00,77,00,2e,00,64,00,6c,00,6c,\ 00,2c,00,2d,00,33,00,30,00,35,00,00,00 "ImageOptionFlags"=dword: [HKEY_CLASSES_ROOT\pngfile\CLSID] @="{F9-11cf-8FD0-00AA00686F13}" [HKEY_CLASSES_ROOT\pngfile\DefaultIcon] @="shimgvw.dll,2" [HKEY_CLASSES_ROOT\pngfile\shell] @="open" [HKEY_CLASSES_ROOT\pngfile\shell\open] "MuiVerb"="@shimgvw.dll,-550" [HKEY_CLASSES_ROOT\pngfile\shell\open\command] @="rundll32.exe C:\\WINDOWS\\system32\\shimgvw.dll,ImageView_Fullscreen %1" [HKEY_CLASSES_ROOT\pngfile\shell\open\DropTarget] "Clsid"="{E84FDA7C-1D6A-45F6-B725-CB260C236066}" [HKEY_CLASSES_ROOT\pngfile\shell\printto] [HKEY_CLASSES_ROOT\pngfile\shell\printto\command] @="rundll32.exe C:\\WINDOWS\\system32\\shimgvw.dll,ImageView_PrintTo /pt \"%1\" \"%2\" \"%3\" \"%4\"" [HKEY_CLASSES_ROOT\SystemFileAssociations\.PNG] "ImageOptionFlags"=dword: [-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.PNG] [-HKEY_CLASSES_ROOT\Mime\Database\Content Type\image/x-png] [-HKEY_CLASSES_ROOT\Mime\Database\Content Type\image/png] [HKEY_CLASSES_ROOT\Mime\Database\Content Type\image/x-png] "Extension"=".png" "Image Filter CLSID"="{A3CCEDF7-2DE2-11D0-86F4-00A0C913F750}" [HKEY_CLASSES_ROOT\Mime\Database\Content Type\image/x-png\Bits] "0"=hex:08,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,89,50,4e,47,0d,0a,1a,0a [HKEY_CLASSES_ROOT\Mime\Database\Content Type\image/png] "Extension"=".png" "Image Filter CLSID"="{A3CCEDF7-2DE2-11D0-86F4-00A0C913F750}" [HKEY_CLASSES_ROOT\Mime\Database\Content Type\image/png\Bits] "0"=hex:08,00,00,00,ff,ff,ff,ff,ff,ff,ff,ff,89,50,4e,47,0d,0a,1a,0a [HKEY_CLASSES_ROOT\CLSID\{A3CCEDF7-2DE2-11D0-86F4-00A0C913F750}] @="CoPNGFilter Class" [HKEY_CLASSES_ROOT\CLSID\{A3CCEDF7-2DE2-11D0-86F4-00A0C913F750}\InProcServer32] @="C:\\WINDOWS\\system32\\pngfilt.dll" "ThreadingModel"="Both" [HKEY_CLASSES_ROOT\CLSID\{A3CCEDF7-2DE2-11D0-86F4-00A0C913F750}\ProgID] @="PNGFilter.CoPNGFilter.1" [HKEY_CLASSES_ROOT\PNGFilter.CoPNGFilter] @="CoPNGFilter Class" [HKEY_CLASSES_ROOT\PNGFilter.CoPNGFilter\CLSID] @="{A3CCEDF7-2DE2-11D0-86F4-00A0C913F750}" [HKEY_CLASSES_ROOT\PNGFilter.CoPNGFilter.1] @="CoPNGFilter Class" [HKEY_CLASSES_ROOT\PNGFilter.CoPNGFilter.1\CLSID] @="{A3CCEDF7-2DE2-11D0-86F4-00A0C913F750}"
大家感兴趣的内容
12345678910
最近更新的内容document.write('&&&&');
请输入你要查询的网站:
百度权重查询
您的查询太频繁了,请稍后查询! 谢谢您的使用
最近查询:
& 爱站网 版权所有
About Aizhan

我要回帖

更多关于 stackoverflow 的文章

 

随机推荐