We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
colors/safe
1 parent fa02651 commit 700dfccCopy full SHA for 700dfcc
javascript/ql/src/semmle/javascript/frameworks/Logging.qll
@@ -221,7 +221,8 @@ class AnsiColorsStep extends TaintTracking::SharedTaintStep {
221
class ColorsStep extends TaintTracking::SharedTaintStep {
222
override predicate stringManipulationStep(DataFlow::Node pred, DataFlow::Node succ) {
223
exists(API::CallNode call |
224
- call = API::moduleImport(["colors", "colors/safe"]).getAMember*().getACall()
+
225
+ call = API::moduleImport(["colors", "colors/safe" /* this variant avoids modifying the prototype methods */ ]).getAMember*().getACall()
226
|
227
pred = call.getArgument(0) and
228
succ = call
0 commit comments