Android updateCurrentUserNick函数堆栈溢出

问题描述

android2.2.5版sdk,我在手机wifi设置了网络代理,但是代理失效的情况下调用updateCurrentUserNick函数发现会导致堆栈溢出,以下是logjava.lang.StackOverflowError   at java.lang.AbstractStringBuilder.append0(AbstractStringBuilder.java:124)   at java.lang.IntegralToString.convertInt(IntegralToString.java:243)   at java.lang.IntegralToString.appendInt(IntegralToString.java:173)   at java.lang.StringBuilder.append(StringBuilder.java:139)   at libcore.io.IoBridge.connectDetail(IoBridge.java:167)   at libcore.io.IoBridge.isConnected(IoBridge.java:219)   at libcore.io.IoBridge.connectErrno(IoBridge.java:161)   at libcore.io.IoBridge.connect(IoBridge.java:112)   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:192)   at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:460)   at java.net.Socket.connect(Socket.java:833)   at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket(PlainSocketFactory.java:119)   at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:188)   at org.apache.http.impl.conn.AbstractPoolEntry.open(AbstractPoolEntry.java:167)   at org.apache.http.impl.conn.AbstractPooledConnAdapter.open(AbstractPooledConnAdapter.java:125)   at org.apache.http.impl.client.DefaultRequestDirector.executeSB(DefaultRequestDirector.java:807)   at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:675)   at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:567)   at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:491)   at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:469)   at com.easemob.cloud.HttpClientManager.httpExecute(Unknown Source)   at com.easemob.cloud.EMHttpClient.httpExecute(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.h(Unknown Source)   at com.easemob.chat.core.j.p(Unknown Source)   at com.easemob.chat.core.j.o(Unknown Source)   at com.easemob.chat.core.l.c(Unknown Source)   at com.easemob.chat.core.n.j(Unknown Source)   at com.easemob.chat.core.j.g(Unknown Source)   at com.easemob.cloud.HttpClientManager.sendRequest(Unknown Source)   at com.easemob.cloud.EMHttpClient.sendRequest(Unknown Source)   at com.easemob.chat.EMChatManager.updateCurrentUserNick(Unknown Source)

解决方案

看下你这边传入的参数有没有问题了  这边 可以自己debug运行下看看了 http://docs.easemob.com/doku.php?id=start:100serverintegration:20users#im用户管理也可以看下服务器端这边提供的修改用户昵称的文档了。
解决方案二:
log很明显看出来是sdk中sendRequest里面的代码有循环调用,即便是我传的参数有问题,你们的代码中也不应该出现这种可能会引起循环调用的逻辑吧

时间: 2024-12-30 19:10:40

Android updateCurrentUserNick函数堆栈溢出的相关文章

位图-android Bitmap的内存溢出,何处添加回收函数?

问题描述 android Bitmap的内存溢出,何处添加回收函数? public Bitmap rotateBitmap(int degree, Bitmap bitmap) { Matrix matrix = new Matrix(); matrix.postRotate(degree); Bitmap bm = Bitmap.createBitmap(bitmap, 0, 0, bitmap.getWidth(), bitmap.getHeight(), matrix, true); re

电脑中无法打开网页并提示堆栈溢出的原因分析及解决方法

  电脑中无法打开网页并提示堆栈溢出的原因分析及解决方法 1.函数调用层次过深,每调用一次,函数的参数.局部变量等信息就压一次栈; 2.局部静态变量体积太大. 解决方法: 1.按win+r打开运行,输入cmd,并按回车; 2.打开命令提示符后,分别输入并执行以下命令: regsvr32 atl.dll regsvr32 shdocvw.dll regsvr32 urlmon.dll regsvr32 browseui.dll regsvr32 oleaut32.dll regsvr32 shel

CC_STACKPROTECTOR防内核堆栈溢出补丁分析

作者:王智通   CC_STACKPROTECT补丁是Tejun Heo在09年给主线kernel提交的一个用来防止内核堆栈溢出的补丁.默认的config是将这个选项关闭的,可以在编译内核的时候, 修改.config文件为CONFIG_CC_STACKPROTECTOR=y来启用.未来飞天内核可以将这个选项开启来防止利用内核stack溢出的0day攻击.这个补丁的防溢出原理是: 在进程启动的时候, 在每个buffer的后面放置一个预先设置好的stack canary,你可以把它理解成一个哨兵,

window系统下的堆栈溢出 作者:ipxodi>

window系统下的堆栈溢出   作者:ipxodi<< mailto:ipxodi@263.net >>       ◆原理篇   这一讲我们来看看windows系统下的程序.我们的目的是研究如何利用windows程序的 堆栈溢出漏洞.   让我们从头开始.windows 98第二版   首先,我们来写一个问题程序: #include   int main() { char name[32]; gets(name); for(int i=0;i<32&&na

数组-关于堆栈溢出的情况,和内存RAM有多大关系

问题描述 关于堆栈溢出的情况,和内存RAM有多大关系 向图中的大数组临时变量是放在堆栈的,堆栈的意思是内存吗,RAM电脑的内存条那个东东吗?堆栈和RAM是等价还是包含于与被包含的 关系啊,溢出就是出现问题了吗?但是电脑在运行时即使内存比较小知识运行比较卡而已不会出现其他问题啊? 解决方案 堆栈和内存的关系堆栈和内存的关系堆栈和内存的关系(C++) 解决方案二: 堆内存是电脑系统分给你程序的一块ram,堆内存只是ram的一小部分, 解决方案三: Windows下应用程序默认堆栈大小是2M,局部变量

Android编程之内存溢出解决方案(OOM)实例总结_Android

本文实例总结了Android编程之内存溢出解决方案(OOM).分享给大家供大家参考,具体如下: 在最近做的工程中发现加载的图片太多或图片过大时经常出现OOM问题,找网上资料也提供了很多方法,但自己感觉有点乱,特此,今天在不同型号的三款安卓手机上做了测试,因为有效果也有结果,今天小马就做个详细的总结,以供朋友们共同交流学习,也供自己以后在解决OOM问题上有所提高,提前讲下,片幅有点长,涉及的东西太多,大家耐心看,肯定有收获的,里面的很多东西小马也是学习参考网络资料使用的,先来简单讲下下: 一般我们

window系统下的堆栈溢出 作者:ipxodi&gt;

   国内私募机构九鼎控股打造APP,来就送 20元现金领取地址:http://jdb.jiudingcapital.com/phone.html内部邀请码:C8E245J (不写邀请码,没有现金送)国内私募机构九鼎控股打造,九鼎投资是在全国股份转让系统挂牌的公众公司,股票代码为430719,为"中国PE第一股",市值超1000亿元.  ---------------------------------------------------------------------------

Android编程之内存溢出解决方案(OOM)实例总结

本文实例总结了Android编程之内存溢出解决方案(OOM).分享给大家供大家参考,具体如下: 在最近做的工程中发现加载的图片太多或图片过大时经常出现OOM问题,找网上资料也提供了很多方法,但自己感觉有点乱,特此,今天在不同型号的三款安卓手机上做了测试,因为有效果也有结果,今天小马就做个详细的总结,以供朋友们共同交流学习,也供自己以后在解决OOM问题上有所提高,提前讲下,片幅有点长,涉及的东西太多,大家耐心看,肯定有收获的,里面的很多东西小马也是学习参考网络资料使用的,先来简单讲下下: 一般我们

CC_STACKPROTECTOR防内核堆栈溢出补丁分析【转】

转自:https://yq.aliyun.com/articles/1723 摘要: 作者:王智通   CC_STACKPROTECT补丁是Tejun Heo在09年给主线kernel提交的一个用来防止内核堆栈溢出的补丁.默认的config是将这个选项关闭的,可以在编译内核的时候, 修改.config文件为CONFIG_CC_STACKPROTECTOR=y来启... 作者:王智通   CC_STACKPROTECT补丁是Tejun Heo在09年给主线kernel提交的一个用来防止内核堆栈溢出