Skip to content

Commit

Permalink
Merge pull request JetBrains#395 from codemasher/fix-sodium-memzero
Browse files Browse the repository at this point in the history
sodium_memzero() - removed invalid param $length
  • Loading branch information
andrey-sokolov authored Aug 3, 2018
2 parents 1e2596f + 765f9f2 commit 97d03e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sodium/sodium.php
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,7 @@ function sodium_memcmp(
* @since 7.2
*/
function sodium_memzero(
&$reference, $length
&$reference
) {
$target = '';
}
Expand Down Expand Up @@ -1191,4 +1191,4 @@ function sodium_crypto_aead_chacha20poly1305_ietf_keygen(): string {}

class SodiumException extends Exception {

}
}
8 changes: 7 additions & 1 deletion tests/mutedProblems.json
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,12 @@
"problems": [
"parameter mismatch"
]
},
{
"name":"sodium_memzero",
"problems": [
"parameter mismatch"
]
}
],
"classes": [
Expand Down Expand Up @@ -1048,4 +1054,4 @@
]
}
]
}
}

0 comments on commit 97d03e7

Please sign in to comment.