question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Very rare invalid decode of node template

See original GitHub issue

Very rarely StringArrayRc4DecodeNodeTemplate return wrong string when decoding object’s key. It ends up in undefined is not a function of similar. When I obfuscate with new seed it’s on 99% fixed. I’m trying to lower the risk of failure by altering rc4KeyLength from 4 to 6 and rc4KeysCount from 50 to 500. Is it possible that occasional collision in generation of rc4key break this?

Expected Behavior

StringArrayRc4DecodeNodeTemplate should properly decode string

Steps to Reproduce

I can’t give you an example code.

Your Environment

index.cli.js “version”: “0.24.3” { “compact”: true, “controlFlowFlattening”: false, “controlFlowFlatteningThreshold”: 0.75, “deadCodeInjection”: true, “deadCodeInjectionThreshold”: 0.4, “debugProtection”: true, “debugProtectionInterval”: false, “disableConsoleOutput”: false, “identifierNamesGenerator”: “hexadecimal”, “log”: true, “renameGlobals”: true, “rotateStringArray”: true, “selfDefending”: true, “shuffleStringArray”: true, “splitStrings”: false, “splitStringsChunkLength”: 10, “stringArray”: true, “stringArrayEncoding”: “rc4”, “stringArrayThreshold”: 0.75, “transformObjectKeys”: false, “unicodeEscapeSequence”: false }

  • Node version used: v12.14.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sanex3339commented, Feb 1, 2020

Should be fixed now

0reactions
sanex3339commented, Feb 2, 2020

Nice!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node.js v19.3.0 Documentation
Settings object; Error handling; Invalid character handling in header names and values; Push streams on the client; Supporting the CONNECT method ...
Read more >
Invalid indentation. Jade template - node.js - Stack Overflow
Works just fine for me as-is, although I don't know if the SO editor changes tabs to spaces. Doesn't the exception you're getting...
Read more >
utf8_decode - Manual - PHP
This function converts the string string from the UTF-8 encoding to ISO-8859-1 . Bytes in the string which ... Invalid UTF-8 sequences are...
Read more >
DomSanitizer - Angular
DomSanitizer helps preventing Cross Site Scripting Security bugs (XSS) by sanitizing values to be safe to use in the different DOM contexts.
Read more >
Dynamic templates | Elasticsearch Guide [8.5] | Elastic
Providing an invalid mapping snippet may cause the update or validation of a dynamic template to fail under certain conditions: If no match_mapping_type...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found