JavaScript调用图中缺失边的自动根本原因量化(扩展版)
Automatic Root Cause Quantification for Missing Edges in JavaScript Call Graphs (Extended Version)
摘要:
由于许多难以分析的语言特性,为真实世界的JavaScript应用程序构建合理且精确的静态调用图是一个巨大的挑战。此外,这些功能的相对重要性可能会根据所使用的调用图算法和所分析的应用程序类别而变化。在本文中,我们提出了一种技术,自动量化的调用图不健全的一组目标应用程序的不同的根本原因的相对重要性。该技术通过识别与静态分析遗漏的每个调用边缘相关的动态函数数据流来工作,正确处理具有多个根本原因和相互依赖的调用的情况。我们应用我们的方法来执行一个国家的最先进的调用图构造技术的召回一组基于框架的Web应用程序的详细研究。这项研究提出了一些有益的见解。我们发现,虽然动态属性访问是基准测试中丢失边缘的最常见根本原因,但其他根本原因的重要性因基准测试而异,这对分析设计人员来说可能是有用的信息。此外,通过我们的方法,我们可以快速识别和修复我们研究的调用图构建器中的召回问题,并快速评估基于Node.js的应用程序的最新分析技术是否对基于浏览器的代码有帮助。我们所有的代码和数据都是公开的,我们技术的许多组件可以重复使用,以促进未来的研究。
英文摘要:
Building sound and precise static call graphs for real-world JavaScript applications poses an enormous challenge, due to many hard-to-analyze language features. Further, the relative importance of these features may vary depending on the call graph algorithm being used and the class of applications being analyzed. In this paper, we present a technique to automatically quantify the relative importance of different root causes of call graph unsoundness for a set of target applications. The technique works by identifying the dynamic function data flows relevant to each call edge missed by the static analysis, correctly handling cases with multiple root causes and inter-dependent calls. We apply our approach to perform a detailed study of the recall of a state-of-the-art call graph construction technique on a set of framework-based web applications. The study yielded a number of useful insights. We found that while dynamic property accesses were the most common root cause of missed edges across the benchmarks, other root causes varied in importance depending on the benchmark, potentially useful information for an analysis designer. Further, with our approach, we could quickly identify and fix a recall issue in the call graph builder we studied, and also quickly assess whether a recent analysis technique for Node.js-based applications would be helpful for browser-based code. All of our code and data is publicly available, and many components of our technique can be re-used to facilitate future studies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。