javascript-obfuscator / javascript-obfuscator/gulp-javascript-obfuscator

Obfuscated script crashing when both mangled identifiers and string array are enabled.

Open
#25 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
103
Forks
37
PR merge metrics
No merged PRs in 30d

Description

Relevant gulp options below:

```
{
compact: true,
controlFlowFlattening: false,
deadCodeInjection: false,
debugProtection: true,
debugProtectionInterval: false,
disableConsoleOutput: true,
identifierNamesGenerator: 'mangled',
log: false,
renameGlobals: true,
selfDefending: false,
splitStrings: true,
splitStringsChunkLength: 3,
stringArray: false,
stringArrayEncoding: false,
rotateStringArray: true,
stringArrayThreshold: 1.00,
transformObjectKeys: true,
unicodeEscapeSequence: false
}
```

`stringArray` seems the culprit here. Disabling any other other primary suspects, such as `renameGlobals` and `debugProtection`, did not fix the issue. Thanks!

Contributor guide

No contributing guide indexed for this repository

Research direction

The report provides only a Gulp configuration; start by reproducing the crash with mangled identifiers and stringArray enabled, then compare it with stringArray disabled. No files, tests, input script, or error output are named. Done means identifying and correcting the incompatibility and confirming the configuration no longer crashes.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.