svent / jsdetox

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

possible invalidation of anonymous function calls #7

Closed 0x4a616e closed 10 years ago

0x4a616e commented 11 years ago
true && function f() {}()

will be changed to:

true && f() {

}()

without the function keyword.

(Might be off-topic here since it seems to be a problem of rkelly)

svent commented 11 years ago

Thanks for your report! I can reproduce this bug and confirmed that this is an upstream bug in the rkelly library. I will try to get it fixed upstream or create a workaround.

svent commented 10 years ago

As rkelly is not maintained anymore, I included the rkelly library into the JSDetox distribution, applied some bug fixes and removed the gem dependency. Thanks to @nene for maintaining a fork of rkelly with valuable contributions.