maennchen / crontab

Parse Cron Expressions, Compose Cron Expression Strings and Caluclate Execution Dates.
https://hex.pm/packages/crontab
MIT License
91 stars 32 forks source link

fix: remove unsafe String.to_atom #107

Closed thomas9911 closed 1 year ago

thomas9911 commented 1 year ago

The cron expression parse contained a String.to_atom call which can lead to atom leaks (on arbitrary input)

maennchen commented 1 year ago

@thomas9911 Oops, one can see that I wrote this lib when I was new to elixir 😅

coveralls commented 1 year ago

Coverage Status

Coverage decreased (-3.0%) to 96.615% when pulling 8fc13c575c182486125a5e7153ce6df4dd13da7e on thomas9911:master into 69d20a54f5a2cc91eca6dd57298cc6085fd68fdf on jshmrtn:master.