With the advent of powerful neural language models, AI-based systems to assist developers in coding tasks are becoming widely available; Copilot is one such system. Copilot uses Codex, a large language model (LLM), to complete code conditioned on a preceding "prompt". Codex, however, is trained on public GitHub repositories, viz., on code that may include bugs and vulnerabilities. Previous studies [1], [2] show Codex reproduces vulnerabilities seen in training. In this study, we examine how prone Codex is to generate an interesting bug category, single statement bugs, commonly referred to as simple, stupid bugs or SStuBs in the MSR community. We find that Codex and similar LLMs do help avoid some SStuBs, but do produce known, verbatim SStuBs as much as 2x as likely than known, verbatim correct code. We explore the consequences of the Codex generated SStuBs and propose avoidance strategies that suggest the possibility of reducing the production of known, verbatim SStubs, and increase the possibility of producing known, verbatim fixes.
LineBreaker: Finding Token-Inconsistency Bugs with Large Language Models
Indiana University Bloomington(印第安纳大学布鲁明顿分校);San Diego State University(圣地亚哥州立大学);The Hong Kong University of Science and Technology(香港科技大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Tsinghua University(清华大学);Nanyang Technological University(南洋理工大学)
Practical Testing of a C99 Compiler Using Output Comparison
本文提出了一种测试C99编译器的简单方法,通过将其输出与已有工具的输出进行比较。这种方法的优点是可以从现有的源代码中批量添加新的测试用例,减少了对正确性问题的深入调查以及手工创建新测试代码的需要。这项技术被用于测试PalmSource Palm OS Cobalt ARM C/C++交叉编译器,主要用于测试Palm-Powered个人数字助理的标准合规性和生成代码的正确执行。这里描述的技术发现了数百个bug,大部分在我们的内部代码中,但也在Edison Design Group和Apogee Software长期以来的高质量前端和后端代码中。它还在GNU C编译器中发现了18个bug,以及一个特定于Apple版本的GCC的bug,一个特定于Suse版本的GCC的bug,以及ARM处理器的GCC版本中的十几个bug,其中几个是关键的。
SimCLF: A Simple Contrastive Learning Framework for Function-level Binary Embeddings
Army Engineering University of PLA(中国人民解放军陆军工程大学);National Computer Network and Information Security Management Center(国家计算机网络与信息安全管理中心);Shanghai Jiao Tong University(上海交通大学);University Of Science & Technology Beijing(北京科技大学)
SLEAN: Simple Lightweight Ensemble Analysis Network for Multi-Provider LLM Coordination: Design, Implementation, and Vibe Coding Bug Investigation Case Study