arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2301.12102cs.SE
收藏

表征和检测WebAssembly网络错误

Characterizing and Detecting WebAssembly Runtime Bugs

Yixuan Zhang, Shangtong Cao, Haoyu Wang, Zhenpeng Chen, Xiapu Luo, Dongliang Mu, Yun Ma, Gang Huang, Xuanzhe Liu

摘要:

WebAssembly(缩写为WASM)已经成为一种很有前途的Web语言,也被广泛用于移动应用程序和桌面应用程序等软件应用程序。这些应用程序称为WASM应用程序,通常在WASM运行时中运行。开发人员经常报告WASM运行时中的错误,并导致WASM应用程序崩溃。然而,这些bug还没有得到很好的研究。为了填补知识空白,我们提出了一个系统的研究,以表征和检测WASM运行时的错误。我们首先从GitHub上的数百个相关帖子中收集了311个真实世界的bug。基于收集到的高质量的bug报告,我们提取了WASM运行时的31个bug类别,并总结了它们的常见修复策略。此外,我们开发了一个基于模式的错误检测框架,自动检测WASM运行时中的错误。我们将检测框架应用于五个流行的WASM运行时,并成功发现了53个以前从未报道过的错误,其中14个已被确认,6个已被运行时开发人员修复。

英文摘要:

WebAssembly (abbreviated WASM) has emerged as a promising language of the Web and also been used for a wide spectrum of software applications such as mobile applications and desktop applications. These applications, named as WASM applications, commonly run in WASM runtimes. Bugs in WASM runtimes are frequently reported by developers and cause the crash of WASM applications. However, these bugs have not been well studied. To fill in the knowledge gap, we present a systematic study to characterize and detect bugs in WASM runtimes. We first harvest a dataset of 311 real-world bugs from hundreds of related posts on GitHub. Based on the collected high-quality bug reports, we distill 31 bug categories of WASM runtimes and summarize their common fix strategies. Furthermore, we develop a pattern-based bug detection framework to automatically detect bugs in WASM runtimes. We apply the detection framework to five popular WASM runtimes and successfully uncover 53 bugs that have never been reported previously, among which 14 have been confirmed and 6 have been fixed by runtime developers.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑