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

OperatorScan should check for MAX_VALUE on request #1659

Merged
merged 1 commit into from
Sep 5, 2014

Conversation

davidmoten
Copy link
Collaborator

A check for n == Long.MAX_VALUE is missing from the Producer implementation which opens up the possibility of passing through an unintended request for Long.MAX_VALUE-1.

@davidmoten
Copy link
Collaborator Author

I'm not supplying a unit test, sorry about that, time short.

@cloudbees-pull-request-builder

ReactiveX » RxJava » RxJava-pull-requests #15 SUCCESS
This pull request looks good

@benjchristensen
Copy link
Member

Ha, interesting bug. Good catch. Thank you @davidmoten

benjchristensen added a commit that referenced this pull request Sep 5, 2014
OperatorScan should check for MAX_VALUE on request
@benjchristensen benjchristensen merged commit 69fa2ff into ReactiveX:0.20.x Sep 5, 2014
@davidmoten davidmoten deleted the scan-fix branch April 10, 2015 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants