Skip to content

cuhk-seclab/LChecker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

LChecker

Weakly-typed languages support loosely comparing two operands by implicitly converting their types and values (e.g., type juggling). Such loose comparison can cause unexpected program behaviours, namely loose comparison bugs. LChecker is a static analysis system for detecting loose comparison bugs in PHP programs. It employs a context-sensitive inter-procedural analysis to label loose comparison bugs.

LChecher has been tested on Debian GNU/Linux 9.12 running PHP7.

Build

Use composer to install the dependencies specified in composer.json.

cd src/
composer install

Run

LChecker directly analyzes the PHP source code and outputs results.

cd src/
# To analyze a single PHP file, e.g., app.php
php Main.php app.php
# To analyze an entire PHP application at app/
php Main.php app/

License

LChecker is under MIT License.

Publication

You can find more details in our WWW 2021 paper.

@inproceedings{li2021lchecker,
    title       = {LChecker: Detecting Loose Comparison Bugs in PHP},
    author      = {Li, Penghui and Meng, Wei},
    booktitle   = {Proceedings of The Web Conference 2021},
    month       = apr,
    year        = 2021
}

Contacts

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages