svent / jsdetox

A Javascript malware analysis tool
https://svent.dev/projects/jsdetox/
591 stars 79 forks source link

Parsing Error #3

Closed SpikesDivZero closed 11 years ago

SpikesDivZero commented 11 years ago

Script I was testing against:

http://js.exceptionhub.com/javascripts/eh.js

The only output shown when I try to analyze or reformat this code is "Error parsing javascript."

The code is reported to work correctly in browsers.

svent commented 11 years ago

Thanks for your report! I could reproduce the error and tracked it down to a bug in a library used for javascript parsing - I will try to get this fixed upstream.

Code to reproduce the bug:

var x = /abc/gm;
svent commented 11 years ago

The fix got accepted upstream: https://github.com/tenderlove/rkelly/pull/15

Please execute this in the JSDetox directory to update your installation:

git pull
[sudo] bundle install
SpikesDivZero commented 11 years ago

Thanks, svent!