如何解决全局或静态变量被修改的bug

问题卡死

程序原来设置Firware name 时N32G475,在程序运行时,程序崩溃,发现输出的固件名称没有了,这里说明固件名称被程序修改了

程序在开机时都是对的

打开map文件查找fw_name的内存地址,他的值被更改,就去查看上边的变量是否修改了它

分析程序的map文件


这里的pBuff就是dataBuff

memset置零长度错误导致清理了固件的名称

相关推荐
phantom_1113 天前
Cursor 分析 bug 记录
bug·cursor
Direction_Wind4 天前
Flinksql bug: Heartbeat of TaskManager with id container_XXX timed out.
大数据·flink·bug
AIBigModel7 天前
智能情趣设备、爆 bug:可被远程操控。。。
网络·安全·bug
Direction_Wind7 天前
flinksql bug: Received resultset tuples, but no field str
bug
远瞻。7 天前
【bug】diff-gaussian-rasterization Windows下编译 bug 解决
windows·bug
中草药z8 天前
【测试】Bug+设计测试用例
功能测试·测试工具·测试用例·bug·压力测试·测试
我又来搬代码了8 天前
【Android】【bug】Json解析错误Expected BEGIN_OBJECT but was STRING...
android·json·bug
葵野寺9 天前
【软件测试】BUG篇 — 详解
bug·测试
青青子衿越11 天前
微信小程序右上角分享页面找不到路径bug
微信小程序·小程序·bug
刘火锅11 天前
Bug 记录:SecureRandom.getInstanceStrong()导致验证码获取阻塞
spring boot·spring·spring cloud·bug