Opened 6 years ago

Closed 6 years ago

#4005 closed defect (fixed)

Undefined behaviour in lwprint_double

Reported by: Algunenano Owned by: strk
Priority: medium Milestone: PostGIS 2.5.0
Component: liblwgeom Version: master
Keywords: Cc:

Description

If infinity is passed undefined behaviour is triggered:

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

Github PR: https://github.com/postgis/postgis/pull/200

Change History (1)

comment:1 by pramsey, 6 years ago

Resolution: fixed
Status: newclosed

In 16365:

lwprint_double: Avoid undefined behaviour with infinity
(Raúl Marín Rodríguez)
Closes #4005
Closes https://github.com/postgis/postgis/pull/200

Note: See TracTickets for help on using tickets.