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 条
  • [21] Abstract domains for universal and existential properties
    Heaton, A
    Hill, PM
    King, A
    PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2000, 1782 : 150 - 164
  • [22] Narrowing Operators on Template Abstract Domains
    Amato, Gianluca
    Di Maio, Simone Di Nardo
    Meo, Maria Chiara
    Scozzari, Francesca
    FM 2015: FORMAL METHODS, 2015, 9109 : 57 - 72
  • [23] Optimal domains for disjunctive abstract interpretation
    Giacobazzi, R
    Ranzato, F
    SCIENCE OF COMPUTER PROGRAMMING, 1998, 32 (1-3) : 177 - 210
  • [24] Construction of Abstract Domains for Heterogeneous Properties
    Rival, Xavier
    Toubhans, Antoine
    Chang, Bor-Yuh Evan
    LEVERAGING APPLICATIONS OF FORMAL METHODS, VERIFICATION AND VALIDATION: SPECIALIZED TECHNIQUES AND APPLICATIONS, PT II, 2014, 8803 : 489 - 492
  • [25] Block-Wise Abstract Interpretation by Combining Abstract Domains with SMT
    Jiang, Jiahong
    Chen, Liqian
    Wu, Xueguang
    Wang, Ji
    VERIFICATION, MODEL CHECKING, AND ABSTRACT INTERPRETATION, VMCAI 2017, 2017, 10145 : 310 - 329
  • [26] Donut Domains: Efficient Non-convex Domains for Abstract Interpretation
    Ghorbal, Khalil
    Ivancic, Franjo
    Balakrishnan, Gogul
    Maeda, Naoto
    Gupta, Aarti
    VERIFICATION, MODEL CHECKING, AND ABSTRACT INTERPRETATION, 2012, 7148 : 235 - 250
  • [27] Juggling type 1 diabetes and pregnancy in rural Australia
    King, Rosemary
    Wellard, Sally
    MIDWIFERY, 2009, 25 (02) : 126 - 133
  • [28] Towards a Rule-Based Approach for Deriving Abstract Domains (Extended Abstract).
    Jurjo, Daniel
    Morales, Jose F.
    Lopez-Garcia, Pedro
    Hermenegildo, Manuel, V
    ELECTRONIC PROCEEDINGS IN THEORETICAL COMPUTER SCIENCE, 2023, 385
  • [29] Juggling with Information Sources, Task Type, and Information Quality
    Wang, Yiwei
    Sarkar, Shawon
    Shah, Chirag
    CHIIR'18: PROCEEDINGS OF THE 2018 CONFERENCE ON HUMAN INFORMATION INTERACTION & RETRIEVAL, 2018, : 82 - 91
  • [30] STRONG ABSTRACT INTERPRETATION USING POWER DOMAINS
    MYCROFT, A
    NIELSON, F
    LECTURE NOTES IN COMPUTER SCIENCE, 1983, 154 : 536 - 547