当前位置:Gxlcms > 数据库问题 > Proj THUDBFuzz Paper Reading: 南京大学软件分析课程2020, 16 Soundiness

Proj THUDBFuzz Paper Reading: 南京大学软件分析课程2020, 16 Soundiness

时间:2021-07-01 10:21:17 帮助过:35人阅读

Soundness & Soundiness

Soundness: the analysis captures all program behaviors, or the analysis result models all possible executions of the program

? A sound analysis requires to capture all dynamic behaviors
? A soundy analysis aims to capture all dynamic behaviors with certain hard language features unsoundly handled within reason
? An unsound analysis deliberately ignores certain behaviors in its design for better efficiency, precision or accessibility

Hard Language Feature: Java Reflection

方法1: String Constant analysis + Pointer Analysis

技术图片
当然,这只适应于非常简单的reflection

方法2: Type Inference + String analysis + Pointer Analysis

技术图片
用reflective target method参数确定具体调用的方法和类。
技术图片

方法3:结合动态分析

Taming reflection: Aiding static analysis in the presence of reflection and custom class loaders

Hard Language Feature: Native Code

Native Code允许java代码调用非java代码,一般通过Java Native Interface执行来与c/c++进行交互。
对重要的native code手动建模。例如,对经常调用的arraycopy()函数进行建模,建模后就是一个拷贝循环,但从指针分析角度来讲,看到这个循环,我们就把数组指针进行传递。
https://www.jianshu.com/p/1ca6e11b1e72
技术图片

Proj THUDBFuzz Paper Reading: 南京大学软件分析课程2020, 16 Soundiness

标签:har   指针   nal   代码   南京   class   execution   better   blank   

人气教程排行