Opened 9 years ago

Closed 9 years ago

#6090 closed defect (fixed)

CPL_LSB[S|U]?INT[16|32]PTR() macros broken with non-byte pointer

Reported by: Even Rouault Owned by: Even Rouault
Priority: normal Milestone: 2.0.1
Component: default Version: unspecified
Severity: normal Keywords:
Cc:

Description

If a non-byte pointer (e.g a short*) was passed to those macros, they didn't work properly. This was for example the case in the SXF driver

Change History (1)

comment:1 by Even Rouault, 9 years ago

Milestone: 2.0.1
Resolution: fixed
Status: newclosed

trunk r29924, branches/2.0 r29925 "Fix CPL_LSBINT16PTR() and CPL_LSBINT32PTR() to work with non-byte pointer (#6090)"

Found by gcc 5.2 -fsanitize

Note: See TracTickets for help on using tickets.