techgaun / zxcvbn-elixir

Elixir implementation of zxcvbn by dropbox
Apache License 2.0
55 stars 7 forks source link

bad argument in arithmetic expression: 6 * 4.83472340425532e307 #21

Open krainboltgreene opened 5 months ago

krainboltgreene commented 5 months ago

Password was quite long.

 ** (ArithmeticError) bad argument in arithmetic expression: 6 * 4.83472340425532e307
 code: Core.Users.update_account_password(account, valid_account_password(), %{
 stacktrace:
   :erlang.*(6, 4.83472340425532e307)
   (zxcvbn 0.1.3) lib/zxcvbn/scoring.ex:440: ZXCVBN.Scoring.update/5
   (stdlib 5.2) maps.erl:416: :maps.fold_1/4
   (elixir 1.16.2) lib/enum.ex:2528: Enum."-reduce/3-lists^foldl/2-0-"/3
   (elixir 1.16.2) lib/enum.ex:4388: Enum.reduce_range/5
   (zxcvbn 0.1.3) lib/zxcvbn/scoring.ex:91: ZXCVBN.Scoring.most_guessable_match_sequence/3
   (zxcvbn 0.1.3) lib/zxcvbn.ex:96: ZXCVBN.zxcvbn/2