[postgis-tickets] [PostGIS] #4383: Sanitizer warnings

PostGIS trac at osgeo.org
Wed Apr 24 04:07:57 PDT 2019


#4383: Sanitizer warnings
-------------------------+---------------------------
  Reporter:  Algunenano  |      Owner:  Algunenano
      Type:  defect      |     Status:  new
  Priority:  medium      |  Milestone:  PostGIS 3.0.0
 Component:  postgis     |    Version:  trunk
Resolution:              |   Keywords:
-------------------------+---------------------------

Comment (by Raul Marin):

 In [changeset:"17414" 17414]:
 {{{
 #!CommitTicketReference repository="" revision="17414"
 Multiple fixes for undefined behaviour in implicit conversions

 shp2pgsql-core.c:839:22: runtime error: implicit conversion from type
 'int' of value -1 (32-bit, signed) to type 'DBFFieldType' changed the
 value to 4294967295 (32-bit, unsigned)

  runtime error: implicit conversion from type 'int32' (aka 'int') of value
 -1 (32-bit, signed) to type 'uint32' (aka 'unsigned int') changed the
 value to 4294967295 (32-bit, unsigned)
  UndefinedBehaviorSanitizer: undefined-behavior
 lwgeom_functions_basic.c:2237:10 in

  runtime error: implicit conversion from type 'unsigned int' of value
 4294967295 (32-bit, unsigned) to type 'int' changed the value to -1
 (32-bit, signed)
  UndefinedBehaviorSanitizer: undefined-behavior ptarray.c:333:13 in

  runtime error: implicit conversion from type 'unsigned int' of value
 4294967295 (32-bit, unsigned) to type 'int' changed the value to -1
 (32-bit, signed)
  UndefinedBehaviorSanitizer: undefined-behavior ptarray.c:333:13 in


 References #4383
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4383#comment:5>
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