You need to log in before you can comment on or make changes to this bug.
According to http://bugzilla.maptools.org/show_bug.cgi?id=2125#c6 callers are not allowed to modify pointer or array values returned from TIFFGetField or the like. So, why not make this explicit in the documentation by specifying these things as const? Note that this is not an ABI change, since C does not encode const in libraries. Also, this is not really an API change, since the varargs call strips away all the types anyway. So it really is more of a documentation change, making explicit what was already implicitly true anyway. The first patch changes the documentation and the va_arg calls, the second patch converts whitepoint and ycbcrcoeffs to be const.
Created an attachment (id=361) [details] Make pointers returned via TIFFGetField const
Created an attachment (id=362) [details] Make the default whitepoint and ycbcrcoeffs arrays const
Bugzilla is no longer used for tracking libtiff issues. Remaining open tickets, such as this one, have been migrated to the libtiff GitLab instance at https://gitlab.com/libtiff/libtiff/issues . The migrated tickets have their summary prefixed with [BZ#XXXX] where XXXX is the initial Bugzilla issue number.