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

APIfix: Output-oriented program synthesis for combating breaking changes in libraries

  • Xiang Gao
  • , Arjun Radhakrishna
  • , Gustavo Soares
  • , Ridwan Shariffdeen
  • , Sumit Gulwani
  • , Abhik Roychoudhury
  • National University of Singapore
  • Microsoft USA

科研成果: 期刊稿件文章同行评审

摘要

Use of third-party libraries is extremely common in application software. The libraries evolve to accommodate new features or mitigate security vulnerabilities, thereby breaking the Application Programming Interface(API) used by the software. Such breaking changes in the libraries may discourage client code from using the new library versions thereby keeping the application vulnerable and not up-to-date. We propose a novel output-oriented program synthesis algorithm to automate API usage adaptations via program transformation. Our aim is not only to rely on the few example human adaptations of the clients from the old library version to the new library version, since this can lead to over-fitting transformation rules. Instead, we also rely on example usages of the new updated library in clients, which provide valuable context for synthesizing and applying the transformation rules. Our tool APIFix provides an automated mechanism to transform application code using the old library versions to code using the new library versions - thereby achieving automated API usage adaptation to fix the effect of breaking changes. Our evaluation shows that the transformation rules inferred by APIFix achieve 98.7% precision and 91.5% recall. By comparing our approach to state-of-the-art program synthesis approaches, we show that our approach significantly reduces over-fitting while synthesizing transformation rules for API usage adaptations.

源语言英语
文章编号161
期刊Proceedings of the ACM on Programming Languages
5
OOPSLA
DOI
出版状态已出版 - 10月 2021
已对外发布

指纹

探究 'APIfix: Output-oriented program synthesis for combating breaking changes in libraries' 的科研主题。它们共同构成独一无二的指纹。

引用此