首页 | 本学科首页   官方微博 | 高级检索  
     

基于位运算的固件代码变量区间分析法
引用本文:谢晓东,李清宝,王 炜,牛小鹏,赵 远. 基于位运算的固件代码变量区间分析法[J]. 计算机科学, 2013, 40(1): 107-111
作者姓名:谢晓东  李清宝  王 炜  牛小鹏  赵 远
作者单位:(信息工程大学信息工程学院计算机系 郑州450002)
基金项目:国家高技术研究发展计划(863,2009AA01Z434)资助
摘    要:变量区间分析是程序代码数据流分析的重要部分。固件反汇编代码存在字节运算和位运算两类运算,当变量取值范围较大时,依次迭代法不能高效地分析经位运算后的结果的取值区间。提出一种快速位运算方法,即根据变量取值区间范围,先将变量转化为不确定位形式再进行位运算;提出一种区间生成算法,即把不确定位形式转化为区间来实现字节运算。实验结果表明,该基于位运算的固件代码变量区间分析方法在程序变量取值范围较大时效率远远高于依次迭代法,而且在各种变量取值区间范围内所需时间稳定,并随着区间范围的增大,其有略微下降趋势。

关 键 词:固件代码  区间分析  不确定位  位运算

Variable Intervals Analysis of Firmware Code Based on Binary-bit Operation
XIE Xiao-dong,LI Qing-bao,WANG Wei,NIU Xiao-peng,ZHAO Yuan. Variable Intervals Analysis of Firmware Code Based on Binary-bit Operation[J]. Computer Science, 2013, 40(1): 107-111
Authors:XIE Xiao-dong  LI Qing-bao  WANG Wei  NIU Xiao-peng  ZHAO Yuan
Affiliation:(Department of Computer Science and Technology,Institute of Information Engineering, PLA Information Engineering University,Zhengzhou 450002,China)
Abstract:The variable intervals analysis plays an important role in program data-flow analysis. There are two different operations, word-level and bit level. For the traditional iterative algorithm is inefficient to analyze the result intervals of bitwise operations if the variable has a large range, a quick bitwise operation method was proposed, which turns variables into the uncertainty bit form, and then makes the bitwise operators. When the uncertainty bit form of a variable needs to do word-level operation, the interval generated algorithm proposed can convert the form to the intervals. The experimental results show that the proposed method is time-consuming stability and more efficient than iterative algorithm with variable range large, and has a downward trend when the variable range expands.
Keywords:Firmware code   Interval analysis   Uncertainty bit   Bit operation
本文献已被 CNKI 等数据库收录!
点击此处可从《计算机科学》下载全文
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号