mirror of
https://github.com/hashcat/hashcat
synced 2024-11-28 05:21:38 +01:00
Fix overflow in mangle_dupechar_last function
This commit is contained in:
parent
34c5eac550
commit
de7ccd88ef
@ -503,6 +503,7 @@ static int mangle_dupechar_last (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const u8
|
|||||||
{
|
{
|
||||||
const int out_len = len + p0;
|
const int out_len = len + p0;
|
||||||
|
|
||||||
|
if (len == 0) return (len);
|
||||||
if (out_len >= RP_PASSWORD_SIZE) return (len);
|
if (out_len >= RP_PASSWORD_SIZE) return (len);
|
||||||
|
|
||||||
const u8 c = buf[len - 1];
|
const u8 c = buf[len - 1];
|
||||||
|
@ -41,6 +41,7 @@
|
|||||||
- Fixed the output of --show when used together with the collider modes -m 9710, 9810 or 10410
|
- Fixed the output of --show when used together with the collider modes -m 9710, 9810 or 10410
|
||||||
- Fixed the use of --veracrypt-pim option. It was completely ignored without showing an error
|
- Fixed the use of --veracrypt-pim option. It was completely ignored without showing an error
|
||||||
- Fixed the version number used in the restore file header
|
- Fixed the version number used in the restore file header
|
||||||
|
- Fixed overflow in mangle_dupechar_last function
|
||||||
|
|
||||||
##
|
##
|
||||||
## Improvements
|
## Improvements
|
||||||
|
@ -528,6 +528,7 @@ static int mangle_dupechar_last (MAYBE_UNUSED const u8 p0, MAYBE_UNUSED const u8
|
|||||||
{
|
{
|
||||||
const int out_len = len + p0;
|
const int out_len = len + p0;
|
||||||
|
|
||||||
|
if (len == 0) return (len);
|
||||||
if (out_len >= RP_PASSWORD_SIZE) return (len);
|
if (out_len >= RP_PASSWORD_SIZE) return (len);
|
||||||
|
|
||||||
const u8 c = buf[len - 1];
|
const u8 c = buf[len - 1];
|
||||||
|
Loading…
Reference in New Issue
Block a user