Skip to content

Fix overflow when searching for <# #7108

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

Merged
merged 1 commit into from
Jan 27, 2017
Merged

Fix overflow when searching for <# #7108

merged 1 commit into from
Jan 27, 2017

Conversation

bitjammer
Copy link
Contributor

ede6bf7 increments the buffer pointer to early
when searching for the <# prefix to stop lexing an operator,
so the source buffer is accessed 1 byte off the end.

Thanks ASan and thanks @gparker42!

rdar://problem/28457876

ede6bf7 increments the buffer pointer to early
when searching for the <# prefix to stop lexing an operator,
so the source buffer is accessed 1 byte off the end.

Thanks ASan and thanks @gparker42!

rdar://problem/28457876
@bitjammer
Copy link
Contributor Author

@akyrtzi This is a follow-up ASan fix for my last pull request - Greg already reviewed this change for for the pull into master. Would you like me to get a second review?

@akyrtzi
Copy link
Contributor

akyrtzi commented Jan 27, 2017

@swift-ci test and merge

@swift-ci swift-ci merged commit d7df768 into swiftlang:swift-3.1-branch Jan 27, 2017
@bitjammer bitjammer deleted the rdar-28457876-fix-buffer-overflow branch January 27, 2017 23:31
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