Memory leaks in VerifyHash #4
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: eric/pascal_bcrypt#4
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Function VerifyHash have some early Exits: Line 756, L761, so RegExp.Free will never get called in case of exits.
Probably best way is to use a small check function like ValidHash instead using regular expressions.
I completely agree. This is on the top of the to do list. (issue #1) Sadly work and some other projects have left me neglecting this for awhile.
If i'll have some time, probably in next days, may implement a small check function.
By the way, does it compile OK under XE10? is it unicode-aware?
Ill need soon due to an extension written in Delphi of a PHP project.
Commit
fe19f3bc49
should fix this. Sorry it took 4+ months. I'm guessing you probably implemented something else since then.Also, I don't have any Delphi products to check if it compiles under that. I think all implementations of bcrypt, unicode strings need to be encoded before hand. I could be wrong though.