Skip to content

Add Jalangi2 for Customizable Analysis#56

Open
justsomeboy26 wants to merge 3 commits into
mainfrom
Jalangi-dynamic-analysis
Open

Add Jalangi2 for Customizable Analysis#56
justsomeboy26 wants to merge 3 commits into
mainfrom
Jalangi-dynamic-analysis

Conversation

@justsomeboy26
Copy link
Copy Markdown

@justsomeboy26 justsomeboy26 commented Oct 24, 2025

This PR adds the Jalangi2 dynamic analysis framework for customizable testing of JavaScript files.

Changes Made:

  • Installed Jalangi2 by cloning the Jalangi2 repo (https://github.com/Samsung/jalangi2) into NodeBB as the Jalangi2 folder.
  • Created the 1 Analysis file called myAnalysis.js in Jalangi2 folder that prints out when variables are being used.
  • Created 2 testing files called triggerNaN.js and target.js in Jalangi2 folder to test analysis scripts on.

Usage:

  • Create your own analysis files following the structure of the sample analysis files with function(sandbox) and ending with (J$).
  • Run analysis using node src/js/commands/jalangi.js --inlineIID --inlineSource --analysis (Path to Analysis File) (Target File)

Sample Output of Running 2 Different Analyses (CheckNaN.js and myAnalysis.js) on triggerNaN.js

image

@coveralls
Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 18769060545

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 78.213%

Totals Coverage Status
Change from base Build 18765016705: 0.002%
Covered Lines: 25046
Relevant Lines: 30113

💛 - Coveralls

Copy link
Copy Markdown

@nihansofia0127 nihansofia0127 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! The CI workflow sets up a Node matrix and runs the test suite. YAML also looks valid and this is ready to merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants