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

lwprint_double: Avoid undefined behaviour with infinity #200

Closed
wants to merge 1 commit into
base: svn-trunk
from

Conversation

Projects
None yet
1 participant
@Algunenano
Member

Algunenano commented Jan 26, 2018

lwprint.c:491:12: runtime error: inf is outside the range of representable values of type 'int'

Detected in test_wkt_in_point with "POINT(1e700 0)"

lwprint_double: Avoid undefined behaviour with infinity
lwprint.c:491:12: runtime error: inf is outside the range of representable values of type 'int'

Detected in test_wkt_in_point with "POINT(1e700 0)"
@Algunenano

This comment has been minimized.

Member

Algunenano commented Jan 26, 2018

@codecov

This comment has been minimized.

codecov bot commented Jan 26, 2018

Codecov Report

Merging #200 into svn-trunk will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           svn-trunk    #200   +/-   ##
=========================================
  Coverage       79.3%   79.3%           
=========================================
  Files            201     201           
  Lines          62854   62854           
=========================================
  Hits           49846   49846           
  Misses         13008   13008
Impacted Files Coverage Δ
liblwgeom/lwprint.c 95.63% <100%> (ø) ⬆️

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 f16a308...1c4dcab. Read the comment docs.

@strk strk closed this in a74efb3 Jan 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment