电子与信息学报
電子與信息學報
전자여신식학보
JOURNAL OF ELECTRONICS & INFORMATION TECHNOLOGY
2013年
8期
1927-1932
,共6页
高洪博%李清宝%王炜%谢晓东%朱瑜
高洪博%李清寶%王煒%謝曉東%硃瑜
고홍박%리청보%왕위%사효동%주유
二进制代码%代码分析%区间分析%抽象解释
二進製代碼%代碼分析%區間分析%抽象解釋
이진제대마%대마분석%구간분석%추상해석
Binary code%Code analysis%Interval analysis%Abstract interpretation
在二进制代码分析中,传统的区间分析方法难以有效获得变量的取值范围。针对二进制代码变量特点,基于抽象解释理论,该文提出字级数据区间和位级数据区间的概念,分别对数值型数据变量和位级数据变量进行抽象表示;将抽象区间用于二进制代码变量运算,构建字级数据区间和位级数据区间的运算方法;引入区间集的概念,确立字级数据区间和位级数据区间的转换关系,提出字级数据区间和位级数据区间的相互转换算法。实验结果表明,该文提出的基于抽象解释的二进制代码变量区间分析方法能够精确高效地确定二进制代码变量的取值范围。
在二進製代碼分析中,傳統的區間分析方法難以有效穫得變量的取值範圍。針對二進製代碼變量特點,基于抽象解釋理論,該文提齣字級數據區間和位級數據區間的概唸,分彆對數值型數據變量和位級數據變量進行抽象錶示;將抽象區間用于二進製代碼變量運算,構建字級數據區間和位級數據區間的運算方法;引入區間集的概唸,確立字級數據區間和位級數據區間的轉換關繫,提齣字級數據區間和位級數據區間的相互轉換算法。實驗結果錶明,該文提齣的基于抽象解釋的二進製代碼變量區間分析方法能夠精確高效地確定二進製代碼變量的取值範圍。
재이진제대마분석중,전통적구간분석방법난이유효획득변량적취치범위。침대이진제대마변량특점,기우추상해석이론,해문제출자급수거구간화위급수거구간적개념,분별대수치형수거변량화위급수거변량진행추상표시;장추상구간용우이진제대마변량운산,구건자급수거구간화위급수거구간적운산방법;인입구간집적개념,학립자급수거구간화위급수거구간적전환관계,제출자급수거구간화위급수거구간적상호전환산법。실험결과표명,해문제출적기우추상해석적이진제대마변량구간분석방법능구정학고효지학정이진제대마변량적취치범위。
Due to characteristics of binary code, it is difficult to deal with binary code variable through traditional interval analysis. To figure out this problem, a new interval analysis method of binary code variable based on abstract interpretation is proposed in this paper. Based on abstract interpretation, two concepts which are word-level data interval and bit-level data interval are presented. The word-level data interval is the abstract presentation of numerical value variable and the bit-level data interval is the abstract presentation of bit value variable. Operation methods of word-level data interval and bit-level data interval are constructed. The conversion operations between word-level data interval and bit-level data interval are put forward and corresponding algorithms are presented. The theoretical and experimental results show that the binary code variable interval can be calculated effectively and precisely with the proposed method.