当前位置:网站首页>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
边栏推荐
- 分布式消息中间件框架选型-数字化架构设计(7)
- PyQt5开发之QTableWidget表头自定义与美化(附源代码下载)
- LeetCode简单题之统计字符串中的元音子字符串
- 线程的调度(优先级)
- AAAI 2022招募讲者啦!!
- 一个必看的微信小程序开发指南1-基础知识了解
- Detailed explanation of ansible automatic operation and maintenance (I) installation and deployment, parameter use, list management, configuration file parameters and user level ansible operating envi
- Compiling principle questions - with answers
- Listed on the Shenzhen Stock Exchange: the market value is 5.2 billion yuan. Lu is the East and his daughter is American
- 英语课小记(四)
猜你喜欢

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

【学习】从零开始的音视频开发(9)——NuPlayer

Using qlst excel file

1216_ MISRA_ C standard learning notes_ Rule requirements for control flow

如何保护开源项目免遭供应链攻击-安全设计(1)

【深度好文】Flink SQL流批⼀体化技术详解(一)

A simple theme of Typecho with beautiful appearance_ Scarfskin source code download

Online yaml to XML tool

Positioning of high precision welding manipulator

WordPress love navigation theme 1.1.3 simple atmosphere website navigation source code website navigation source code
随机推荐
【路科V0】验证环境2——验证环境组件
怎么读书读论文
万物互联下如何对设备进行加密
LeetCode-199-二叉树的右视图
How to read books and papers
WordPress love navigation theme 1.1.3 simple atmosphere website navigation source code website navigation source code
The simple problem of leetcode is to calculate the numerical sum of strings
作文以记之 ~ 二叉树的前序遍历
谈谈那些基础但不简单的股票数据
每周leetcode - 06 数组专题 7~739~50~offer 62~26~189~9
Compiler des questions de principe - avec des réponses
5.6 comprehensive case - RTU-
Situational leaders - Chapter 7, solving performance problems
Listed on the Shenzhen Stock Exchange: the market value is 5.2 billion yuan. Lu is the East and his daughter is American
vslam PPT
LeetCode中等题之旋转函数
二维01背包
AQS & ReentrantLock 实现原理
Distributed service governance Nacos
redis主从服务器问题