zoukankan      html  css  js  c++  java
  • 未初始化内存检测(MSan)

    https://github.com/google/sanitizers/wiki

    https://github.com/google/sanitizers/wiki/MemorySanitizer

    Introduction

    MemorySanitizer (MSan) is a detector of uninitialized memory reads in C/C++ programs.

    Uninitialized values occur when stack- or heap-allocated memory is read before it is written. MSan detects cases where such values affect program execution.

    MSan is bit-exact: it can track uninitialized bits in a bitfield. It will tolerate copying of uninitialized memory, and also simple logic and arithmetic operations with it. In general, MSan silently tracks the spread of uninitialized data in memory, and reports a warning when a code branch is taken (or not taken) depending on an uninitialized value.

    MSan implements a subset of functionality found in Valgrind (Memcheck tool). It is significantly faster than Memcheck (TODO:benchmark).

  • 相关阅读:
    流程控制语句
    java运算符
    变量
    java虚拟机
    常量
    java注释
    java标识符
    单击显示随机文字
    2018/6/25~2018/6/29 周记
    2018/6/19~2018/6/22 周记
  • 原文地址:https://www.cnblogs.com/zengjianrong/p/11777500.html
Copyright © 2011-2022 走看看