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

compiler: fix a byte class bug #368

Merged
merged 1 commit into from
May 20, 2017
Merged

Conversation

BurntSushi
Copy link
Member

The code that computes the byte classes had a bug that was only tripped
when the maximum number of equivalence classes was necessary (256). This
commit fixes that by rewriting the loop such that we never uselessly
increment outside the bounds of u8.

Fixes #367

The code that computes the byte classes had a bug that was only tripped
when the maximum number of equivalence classes was necessary (256). This
commit fixes that by rewriting the loop such that we never uselessly
increment outside the bounds of `u8`.

Fixes rust-lang#367
@BurntSushi
Copy link
Member Author

@bors r+

@bors
Copy link
Contributor

bors commented May 20, 2017

📌 Commit 1f0a025 has been approved by BurntSushi

@bors
Copy link
Contributor

bors commented May 20, 2017

⌛ Testing commit 1f0a025 with merge 2fd0ff2...

bors added a commit that referenced this pull request May 20, 2017
compiler: fix a byte class bug

The code that computes the byte classes had a bug that was only tripped
when the maximum number of equivalence classes was necessary (256). This
commit fixes that by rewriting the loop such that we never uselessly
increment outside the bounds of `u8`.

Fixes #367
@bors
Copy link
Contributor

bors commented May 20, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: BurntSushi
Pushing 2fd0ff2 to master...

@bors bors merged commit 1f0a025 into rust-lang:master May 20, 2017
@manojt193
Copy link

I need the meaning of the code particular the ascii values \xc0\xa8\x02\x17.
i find the values for last two char. but i don't know how the chars works or what kind of variable will match the regular expresion.

02 STX Start of Text
17 ETB End of Transmission Block

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.

Pattern panics non-Unicode bytes::Regex
3 participants