Opened 7 years ago

Closed 7 years ago

#3882 closed defect (fixed)

Undefined behaviour in zigzag with negative inputs

Reported by: Raul Marin Owned by: strk
Priority: medium Milestone: PostGIS 2.2.6
Component: liblwgeom Version: master
Keywords: Cc:

Description

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

Change History (5)

comment:1 by pramsey, 7 years ago

In 15948:

Fix undefined behaviour in zigzag with negative inputs (2.4 branch)
(References #3882)

comment:2 by pramsey, 7 years ago

In 15949:

Fix undefined behaviour in zigzag with negative inputs (2.4 branch)
(References #3882)

comment:3 by pramsey, 7 years ago

In 15950:

Fix undefined behaviour in zigzag with negative inputs (2.4 branch)
(References #3882)

comment:4 by pramsey, 7 years ago

In 15951:

Fix undefined behaviour in zigzag with negative inputs
(References #3882)

comment:5 by pramsey, 7 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.