Testing Jalangi Dynamic Analysis Tool #52
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What?
Jalangi2
dynamic analysis tool on our team repository. Installation of jalangi github repo was included in.github/workflows/test.yml
for the github check to run itself (thus, thejalangi2
directory will not appear in "Files changed" of this PR even though this directory was added locally).require-main.js
via the command:node jalangi2/src/js/commands/direct.js --analysis jalangi2/src/js/sample_analyses/ChainedAnalyses.js --analysis jalangi2/src/js/sample_analyses/dlint/Utils.js --analysis jalangi2/src/js/sample_analyses/dlint/CheckNaN.js --analysis jalangi2/src/js/sample_analyses/dlint/FunCalledWithMoreArguments.js --analysis jalangi2/src/js/sample_analyses/dlint/CompareFunctionWithPrimitives.js --analysis jalangi2/src/js/sample_analyses/dlint/ShadowProtoProperty.js --analysis jalangi2/src/js/sample_analyses/dlint/ConcatUndefinedToString.js --analysis jalangi2/src/js/sample_analyses/dlint/UndefinedOffset.js require-main_jalangi_.js
Why?
Screenshots of Local Installation
Cloning Jalangi Github Repo
Installing Jalangi
New Jalangi Directory
Local Jalangi Analysis
require-main_jalangi_.js
andrequire-main_jalangi_.json
. These are output files generated by Jalangi to be used for its dynamic analysis onrequire-main.js
.Running Jalangi Analysis Locally
jalangi2
directory, however they are not reflected in the Github actions check since a fresh version of the repo was cloned..github/workflows/test.yml
as part of the Github actions check. Provided Jalangi analysis remain silent until an error occurs so by default there is no output (which is why log statements were added locally to prove a successful run as seen in above screenshot).