mirror of
https://github.com/hashcat/hashcat.git
synced 2025-01-10 15:51:10 +00:00
Run Clang's bugprone-narrowing-conversions
Fairly minor issue.
This commit is contained in:
parent
df618e861e
commit
ab061ba761
@ -773,7 +773,7 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
|
|||||||
|
|
||||||
if ((user_options->username == true) || (hashconfig->opts_type & OPTS_TYPE_HASH_COPY) || (hashconfig->opts_type & OPTS_TYPE_HASH_SPLIT))
|
if ((user_options->username == true) || (hashconfig->opts_type & OPTS_TYPE_HASH_COPY) || (hashconfig->opts_type & OPTS_TYPE_HASH_SPLIT))
|
||||||
{
|
{
|
||||||
u32 hash_pos;
|
u64 hash_pos;
|
||||||
|
|
||||||
for (hash_pos = 0; hash_pos < hashes_avail; hash_pos++)
|
for (hash_pos = 0; hash_pos < hashes_avail; hash_pos++)
|
||||||
{
|
{
|
||||||
@ -820,7 +820,7 @@ int hashes_init_stage1 (hashcat_ctx_t *hashcat_ctx)
|
|||||||
salts_buf = (salt_t *) hccalloc (1, sizeof (salt_t));
|
salts_buf = (salt_t *) hccalloc (1, sizeof (salt_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
for (u32 hash_pos = 0; hash_pos < hashes_avail; hash_pos++)
|
for (u64 hash_pos = 0; hash_pos < hashes_avail; hash_pos++)
|
||||||
{
|
{
|
||||||
hashes_buf[hash_pos].digest = ((char *) digests_buf) + (hash_pos * hashconfig->dgst_size);
|
hashes_buf[hash_pos].digest = ((char *) digests_buf) + (hash_pos * hashconfig->dgst_size);
|
||||||
|
|
||||||
|
@ -365,8 +365,8 @@ static int mp_gen_css (hashcat_ctx_t *hashcat_ctx, char *mask_buf, size_t mask_l
|
|||||||
{
|
{
|
||||||
const user_options_t *user_options = hashcat_ctx->user_options;
|
const user_options_t *user_options = hashcat_ctx->user_options;
|
||||||
|
|
||||||
u32 mask_pos;
|
size_t mask_pos;
|
||||||
u32 css_pos;
|
size_t css_pos;
|
||||||
|
|
||||||
for (mask_pos = 0, css_pos = 0; mask_pos < mask_len; mask_pos++, css_pos++)
|
for (mask_pos = 0, css_pos = 0; mask_pos < mask_len; mask_pos++, css_pos++)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user