跳到主要导航 跳到搜索 跳到主要内容

Code Property Graph Meets Typestate: A Scalable Framework to Behavioral Bug Detection

  • Beihang University
  • Huawei Technologies Co., Ltd.

科研成果: 书/报告/会议事项章节会议稿件同行评审

摘要

Behavioral bugs caused by incorrect state changes are particularly challenging to identify because they depend on specific code execution paths. While code property graph (CPG) combine multiple code views through abstract syntax trees (AST), their built-in redundancy from syntax details and fixed connection rules make them hard to scale-a major problem when analyzing large software systems. We introduce QVoG, a new framework that improves CPG by combining graphbased code analysis with state behavior checking. Our main innovation lies in simplifying the CPG at the statement level by consolidating control and data flows into meaningful code blocks and optimizing the edges. This approach reduces the graph size by more than 10 times compared to AST-based methods while maintaining accuracy. This lightweight design allows easy integration of state tracking, where we match object lifecycle rules to simplified CPG connections using replaceable patterns. The combination of streamlined graphs and state-aware analysis helps QVoG effectively find difficult-to-identify behavioral bugs, successfully detecting 25 issues (including 17 confirmed cases and 2 official CVE) in real-world projects. Importantly, QVoG analyzes raw source code without requiring compilation and supports projects exceeding 1 million lines of code.

源语言英语
主期刊名Proceedings - 2025 IEEE International Conference on Software Maintenance and Evolution, ICSME 2025
出版商Institute of Electrical and Electronics Engineers Inc.
98-109
页数12
ISBN(电子版)9798331595876
DOI
出版状态已出版 - 2025
活动41st IEEE International Conference on Software Maintenance and Evolution, ICSME 2025 - Auckland, 新西兰
期限: 7 9月 202512 9月 2025

丛书

姓名Proceedings - 2025 IEEE International Conference on Software Maintenance and Evolution, ICSME 2025

会议

会议41st IEEE International Conference on Software Maintenance and Evolution, ICSME 2025
国家/地区新西兰
Auckland
时期7/09/2512/09/25

学术指纹

探究 'Code Property Graph Meets Typestate: A Scalable Framework to Behavioral Bug Detection' 的科研主题。它们共同构成独一无二的学术指纹。

引用此