当前位置:网站首页>Asan minimalism
Asan minimalism
2022-04-23 08:21:00 【maray】
- Physical memory is limited , Virtual memory unlimited .
- ASAN Took over the application malloc technological process
- Every time memory is allocated , Be sure to use a new virtual address , And add page protection at both ends of the address
OVER
The main points of : Because the virtual memory resource is “ Infinite ” Of , So you can waste a lot . Waste is reflected in two aspects :
- Allocated address space , Even if free After that , It will not be assigned to users again . What users feel is that the memory address allocated by the memory allocator is always higher than the last time .
- already free The memory area that has been used is called Dead Zone
- Every time a piece of memory is allocated , Always reserve a page at both ends , And make these two pages read and write protected .
- The pages reserved at both ends are called Red Zone


Based on this mechanism ,ASAN Just track the stack for each memory allocation , When something goes wrong, you can accurately report the problem point . Memory problems that can be detected :
- The visit has free Used memory , Trigger Dead Zone Call the police
- Memory access out of bounds , Trigger Red Zone Call the police
- Some wild pointer problems , Trigger Dead Zone / Red Zone Call the police
What's the problem? ASAN It can't be solved ?
- Some wild pointer problems ( I just wrote that I haven't “Dead” The memory area of , No alarm will be triggered )
版权声明
本文为[maray]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230712063280.html
边栏推荐
- 欧圣电气深交所上市:市值52亿 陆为东父女为美国籍
- Green apple film and television system source code film and television aggregation film and television navigation film and television on demand website source code
- The simple problem of leetcode is to calculate the numerical sum of strings
- dmp引擎工作总结(2021,光剑)
- Description of the abnormity that the key frame is getting closer and closer in the operation of orb slam
- 【Appium】测试时遇到手机内嵌H5页面的切换问题
- 分布式消息中间件框架选型-数字化架构设计(7)
- JS converts tree structure data into one-dimensional array data
- 分组背包呀
- ATSS(CVPR2020)
猜你喜欢

一个必看的微信小程序开发指南1-基础知识了解

The whole house intelligence bet by the giant is driving the "self revolution" of Hisense, Huawei and Xiaomi

PyQt5开发之QTableWidget表头自定义与美化(附源代码下载)

ansible自动化运维详解(一)ansible的安装部署、参数使用、清单管理、配置文件参数及用户级ansible操作环境构建

通过实现参数解析器HandlerMethodArgumentResolver接口来自定义注解

Goland 调试go使用-大白记录

One click cleanup of pycharm and jupyter cache files under the project

The annotation is self-defined by implementing the parameter parser handlermethodargumentresolver interface

一键清理项目下pycharm和Jupyter缓存文件

跨域配置报错: When allowCredentials is true, allowedOrigins cannot contain the special value “*“
随机推荐
2022.4.11-4.17 AI industry weekly (issue 93): the dilemma of AI industry
ASAN 极简原理
Description of the abnormity that the key frame is getting closer and closer in the operation of orb slam
A simple theme of Typecho with beautiful appearance_ Scarfskin source code download
LeetCode簡單題之計算字符串的數字和
二维01背包
npm安装yarn
Weekly leetcode - 06 array topics 7 ~ 739 ~ 50 ~ offer 62 ~ 26 ~ 189 ~ 9
Comparison of indoor positioning methods of several intelligent robots
The following program deletes n consecutive words starting from the ith character from the string str
LeetCode15. Sum of three
关于ORB——SLAM运行中关键帧位置越来越近的异常说明
js常用数组方法
Common regular expressions
JS common array methods
浅谈ES6尾调优化
NFT ecological development of Ignis public chain: unicorn Donation and development of Art
There are some problems when using numeric type to query string type fields in MySQL
一键清理项目下pycharm和Jupyter缓存文件
Data security has become a hidden danger. Let's see how vivo can make "user data" armor again