Skip to content

Commit

Permalink
Merge pull request #7 from antksk/master
Browse files Browse the repository at this point in the history
Update mysql_aes256.c
  • Loading branch information
Joungkyun authored Nov 17, 2016
2 parents 04ae1a6 + 0e50e40 commit 51ab5f0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/mysql_aes256.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,11 @@ EXPORT_API char * aes256_decrypt (
" + length : %ld\n",
args->arg_type[0], args->args[0], args->lengths[0]
);
// 암호화되지 않은 임의의 값(select AES256_DECRYPT(UNHEX('encrypted_hash_string'), '0123456789abcdef0123456789abcdef');)을
// 넣으면(예제소스를 그대로 실행시)
// MySQL 5.5.30 version에서 DB 정지되는 현상 발생
// 파라미터 검증 후 잘못된 값으로 판단되면 null 리턴되도록 수정 (2016-11-16)
return null;
}

#ifdef MY_AES256_DEBUG
Expand Down

0 comments on commit 51ab5f0

Please sign in to comment.