Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Looping by mistake over all jobs array (instead of all actual jobs) #129

Open
prassag opened this issue Dec 2, 2019 · 0 comments
Open

Comments

@prassag
Copy link

prassag commented Dec 2, 2019

func Scheduled(j interface{}) bool will crash when the answer if false
The function loops over all defaultScheduler.jobs which may (and probably will be) at least partially nil (if not all MAXJOBNUM are used).
Every loop over this array must be using the index and run up to size.

This is true also for func (s *Scheduler) Scheduled(j interface{}) bool

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants