You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@robfig hey, my fuzzer encountered this problem, the solution seems to be simple. Now Parse panics when the time zone is entered incorrectly, like what is written here in the issue, so I just processed the input. Can you please take a look at my pr?
This is fixed in github.com/fitzyracing1/cron/v3 v3.0.2 (v3.0.1 plus this fix only, same API): cron.ParseStandard("TZ=TZ=TZ=") and other specs that are only a TZ=/CRON_TZ= prefix now return an error instead of panicking with slice bounds out of range [:-1]. There's also a fuzz test over all parsers. Drop-in via go.mod: replace github.com/robfig/cron/v3 => github.com/fitzyracing1/cron/v3 v3.0.2. Details: https://github.com/fitzyracing1/cron
Activity
Placebo900 commentedon Oct 9, 2023
@robfig hey, my fuzzer encountered this problem, the solution seems to be simple. Now Parse panics when the time zone is entered incorrectly, like what is written here in the issue, so I just processed the input. Can you please take a look at my pr?
tooptoop4 commentedon Oct 9, 2023
@Placebo900 robfig dipped out years ago so this is abandonware
fix(snapshots): reject a TZ= prefix with no cron fields instead of pa…
fitzyracing1 commentedon Oct 8, 2026
This is fixed in
github.com/fitzyracing1/cron/v3v3.0.2 (v3.0.1 plus this fix only, same API):cron.ParseStandard("TZ=TZ=TZ=")and other specs that are only aTZ=/CRON_TZ=prefix now return an error instead of panicking withslice bounds out of range [:-1]. There's also a fuzz test over all parsers. Drop-in viago.mod:replace github.com/robfig/cron/v3 => github.com/fitzyracing1/cron/v3 v3.0.2. Details: https://github.com/fitzyracing1/cronfeat(cron): use the entry name as the hash key for H
feat(cron): use the entry name as the hash key for H (robfig#471)