[postgis-tickets] [PostGIS] #3882: Undefined behaviour in zigzag with negative inputs

PostGIS trac at osgeo.org
Fri Oct 6 07:37:11 PDT 2017


#3882: Undefined behaviour in zigzag with negative inputs
------------------------+---------------------------
 Reporter:  Raul Marin  |      Owner:  strk
     Type:  defect      |     Status:  new
 Priority:  medium      |  Milestone:  PostGIS 2.2.6
Component:  liblwgeom   |    Version:  trunk
 Keywords:              |
------------------------+---------------------------
 Output from with the sanitizer:

 {{{
 Running test 'test_zigzag' in suite 'varint'.
 varint.c:170:14: runtime error: left shift of negative value -1
 varint.c:175:14: runtime error: left shift of negative value -1
 varint.c:180:14: runtime error: left shift of negative value -127
 }}}

 Fixes in Github's PR: https://github.com/postgis/postgis/pull/153

--
Ticket URL: <https://trac.osgeo.org/postgis/ticket/3882>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list