当前位置:网站首页>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
边栏推荐
- Positioning of high precision welding manipulator
- Using qlst excel file
- clang 如何产生汇编文件
- vslam PPT
- 谈谈那些基础但不简单的股票数据
- CSV column extract column extraction
- Penetration test interview collection -- HVV---
- Find the largest of 3 strings (no more than 20 characters per string).
- Description of the abnormity that the key frame is getting closer and closer in the operation of orb slam
- 输入/输出系统
猜你喜欢
Why are there 1px problems? How?
freertos学习02-队列 stream buffer message buffer
QT reading and writing XML files
Qt编译QtXlsx库
CSV column extract column extraction
Smart business card applet business card details page function implementation key code
搜一下导航完整程序源码
My heart's broken! A woman's circle of friends envied others for paying wages on time and was fired. Even her colleagues who liked her were fired together
Ansible Automation Operation and Maintenance details (ⅰ) Installation and Deployment, Parameter use, list Management, Profile Parameters and user level ansible operating environment Construction
2022.4.11-4.17 AI行业周刊(第93期):AI行业的困局
随机推荐
剑指offer day24 数学(中等)
Data security has become a hidden danger. Let's see how vivo can make "user data" armor again
Discussion on ES6 tail tune optimization
Qtablewidget header customization and beautification developed by pyqt5 (with source code download)
My heart's broken! A woman's circle of friends envied others for paying wages on time and was fired. Even her colleagues who liked her were fired together
Install MySQL for Ubuntu and query the average score
作文以记之 ~ 二叉树的后序遍历
【Appium】测试时遇到手机内嵌H5页面的切换问题
NFT ecological development of Ignis public chain: unicorn Donation and development of Art
C outputs a two-dimensional array with the following characteristics.
5.6 综合案例-RTU-
线程的调度(优先级)
如何保护开源项目免遭供应链攻击-安全设计(1)
浅谈ES6尾调优化
vslam PPT
The following program deletes n consecutive words starting from the ith character from the string str
QT compilation qtxlsx Library
Online app resource download website source code
Rearranging log files for leetcode simple question
C语言学习记录——삼십팔 字符串函数使用和剖析(2)