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

Fix case when float parsing, we failed to check eof before peeking #85

Merged
merged 1 commit into from
Jul 30, 2021

Conversation

quinnj
Copy link
Member

@quinnj quinnj commented Jul 30, 2021

Discovered while porting JSON.jl to Parsers 2.0. Unfortunately, the byte
peeking was under an @inbounds, so this usually wouldn't error unless
julia was run with --check-bounds=yes (which is the default when
running tests thankfully). Good candidate to backport for another 1.X
release.

Discovered while porting JSON.jl to Parsers 2.0. Unfortunately, the byte
peeking was under an `@inbounds`, so this usually wouldn't error unless
julia was run with `--check-bounds=yes` (which is the default when
running tests thankfully). Good candidate to backport for another 1.X
release.
@codecov
Copy link

codecov bot commented Jul 30, 2021

Codecov Report

Merging #85 (3abe1ff) into main (b463464) will decrease coverage by 0.02%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #85      +/-   ##
==========================================
- Coverage   87.68%   87.65%   -0.03%     
==========================================
  Files           9        9              
  Lines        2151     2154       +3     
==========================================
+ Hits         1886     1888       +2     
- Misses        265      266       +1     
Impacted Files Coverage Δ
src/floats.jl 92.76% <66.66%> (-0.27%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b463464...3abe1ff. Read the comment docs.

@quinnj quinnj merged commit abaf0d4 into main Jul 30, 2021
@quinnj quinnj deleted the jq/floatfix branch July 30, 2021 06:37
quinnj added a commit that referenced this pull request Jul 30, 2021
Discovered while porting JSON.jl to Parsers 2.0. Unfortunately, the byte
peeking was under an `@inbounds`, so this usually wouldn't error unless
julia was run with `--check-bounds=yes` (which is the default when
running tests thankfully). Good candidate to backport for another 1.X
release.
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.

1 participant