Skip to content
Prev Previous commit
Next Next commit
Autoformat
  • Loading branch information
smowton committed Jun 2, 2022
commit e54b29a84676c6dcfaa59240a6090a4c8029f91f
2 changes: 0 additions & 2 deletions go/ql/src/experimental/CWE-321/HardcodedKeysLib.qll
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ module HardcodedKeys {
* contributing a dangerous hardcoded key.
*/
private class ReturnedAlongsideErrorSanitizerGuard extends Sanitizer {
Comment thread
This conversation was marked as resolved.

ReturnedAlongsideErrorSanitizerGuard() {
exists(ControlFlow::ConditionGuardNode guard, SsaWithFields errorVar, ReturnStmt r |
guard.ensuresNeq(errorVar.getAUse(), Builtin::nil().getARead()) and
Expand All @@ -205,7 +204,6 @@ module HardcodedKeys {
this.asExpr() = r.getExpr(0)
)
}

}

/** Mark any formatting string call as a sanitizer */
Expand Down