发明申请
- 专利标题: Analysis of Interactions of C and C++ Strings
- 专利标题(中): C和C ++字符串的相互作用分析
-
申请号: US13416358申请日: 2012-03-09
-
公开(公告)号: US20120233584A1公开(公告)日: 2012-09-13
- 发明人: Franjo Ivancic , Gogul Balakrishnan , Naoto Maeda , Aarti Gupta
- 申请人: Franjo Ivancic , Gogul Balakrishnan , Naoto Maeda , Aarti Gupta
- 申请人地址: US NJ Princeton
- 专利权人: NEC LABORATORIES AMERICA, INC.
- 当前专利权人: NEC LABORATORIES AMERICA, INC.
- 当前专利权人地址: US NJ Princeton
- 主分类号: G06F9/44
- IPC分类号: G06F9/44
摘要:
A computer implemented method for analyzing a computer software program comprising both C++ and C string components, wherein the method includes building a memory model abstraction of any memory used by the program strings. Various memory models are presented that find invalid memory accesses in terms of validity of memory regions and buffer overflows. The model supports analyzing the interaction of C and C++ components—in particular, it focuses on the interaction of C and C++ strings. The conversion of C++ strings to C strings is accomplished through a non-transferable ownership attribute that is to be respected by the C strings. The models can then be analyzed using static analysis techniques such as abstract interpretation and model checking, or through dynamic analysis. In so doing we allow discovery of potential memory safety violations in programs involving conversions between C and C++ strings.
信息查询