Check pk size before reading

This commit is contained in:
Sheng
2018-08-29 11:31:20 +08:00
parent fa717491cd
commit 6401e82ef9
+1 -1
View File
@@ -336,7 +336,7 @@ jQuery(function($){
}
var pk = data.get('privatekey');
if (pk) {
if (pk && pk.size) {
if (pk.size > key_max_size) {
console.log('Invalid private key: ' + pk.name);
} else {