-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
modify for unsafe #4024
modify for unsafe #4024
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks correct, but there are conflicts now (the main issue is now fixed in master it seems)
sqi-- | ||
rmQueue = append(rmQueue, sqi) | ||
scheduled++ | ||
} | ||
|
||
if len(rmQueue) > 0 { | ||
for i := len(rmQueue) - 1; i >= 0; i-- { | ||
sh.schedQueue.Remove(rmQueue[i]) | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was the previous code incorrect?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
previous code may problem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but what was the issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this makes the code more secure
hi @magik6k merge ok |
modify for unsafe
#4017
for var sqi in for statement
unsafe