Abstract Domains for Type Juggling

被引:8
|
作者
Arceri V. [1 ]
Maffeis S. [2 ]
机构
[1] Department of Computer Science, University of Verona
[2] Department of Computing, Imperial College, London
基金
英国工程与自然科学研究理事会;
关键词
Abstract interpretation; PHP; Static analysis; Type conversions;
D O I
10.1016/j.entcs.2017.02.003
中图分类号
学科分类号
摘要
Web scripting languages, such as PHP and JavaScript, provide a wide range of dynamic features that make them both flexible and error-prone. In order to prevent bugs in web applications, there is a sore need for powerful static analysis tools. In this paper, we investigate how Abstract Interpretation may be leveraged to provide a precise value analysis providing rich typing information that can be a useful component for such tools. In particular, we define the formal semantics for a core of PHP that illustrates type juggling, the implicit type conversions typical of PHP, and investigate the design of abstract domains and operations that, while still scalable, are expressive enough to cope with type juggling. We believe that our approach can also be applied to other languages with implicit type conversions. © 2017 The Author(s)
引用
收藏
页码:41 / 55
页数:14
相关论文
共 50 条
  • [1] Sum of Abstract Domains
    Amato, Gianluca
    Di Maio, Simone Di Nardo
    Scozzari, Francesca
    NASA FORMAL METHODS (NFM 2015), 2015, 9058 : 35 - 49
  • [2] Temporal Abstract Domains
    Bertrane, Julien
    2011 16TH IEEE INTERNATIONAL CONFERENCE ON ENGINEERING OF COMPLEX COMPUTER SYSTEMS (ICECCS), 2011, : 3 - 12
  • [3] String Abstract Domains and Their Combination
    Sondergaard, Harald
    LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION (LOPSTR 2021), 2022, 13290 : 1 - 15
  • [4] Relational String Abstract Domains
    Arceri, Vincenzo
    Olliaro, Martina
    Cortesi, Agostino
    Ferrara, Pietro
    VERIFICATION, MODEL CHECKING, AND ABSTRACT INTERPRETATION, VMCAI 2022, 2022, 13182 : 20 - 42
  • [5] Refining and compressing abstract domains
    Giacobazzi, R
    Ranzato, F
    AUTOMATA, LANGUAGES AND PROGRAMMING, 1997, 1256 : 771 - 781
  • [6] Logical Abstract Domains and Interpretations
    Cousot, Patrick
    Cousot, Radhia
    Mauborgne, Laurent
    FUTURE OF SOFTWARE ENGINEERING, 2011, : 48 - 71
  • [7] Abstract Domains of Affine Relations
    Elder, Matt
    Lim, Junghee
    Sharma, Tushar
    Andersen, Tycho
    Reps, Thomas
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 2014, 36 (04): : 1 - 73
  • [8] Abstract Domains of Affine Relations
    Elder, Matt
    Lim, Junghee
    Sharma, Tushar
    Andersen, Tycho
    Reps, Thomas
    STATIC ANALYSIS, 2011, 6887 : 198 - 215
  • [9] EFFECTS OF DOMAINS ON MAGNETORESISTANCE (ABSTRACT)
    ZHANG, SF
    LEVY, PM
    JOURNAL OF APPLIED PHYSICS, 1994, 76 (10) : 6619 - 6619
  • [10] Abstract Interpretation over Non-lattice Abstract Domains
    Gange, Graeme
    Navas, Jorge A.
    Schachte, Peter
    Sondergaard, Harald
    Stuckey, Peter J.
    STATIC ANALYSIS, SAS 2013, 2013, 7935 : 6 - 24