_TIFFauxiliary(3tiff)

_TIFFauxiliary3tiff

Auxiliary functions

Usage

#include <tiffio.h>
uint32_t _TIFFClampDoubleToUInt32(double val)
uint32_t _TIFFMultiply32(TIFF *tif, uint32_t first, uint32_t second, const char *where)
uint64_t _TIFFMultiply64(TIFF *tif, uint64_t first, uint64_t second, const char *where)

Overview

_TIFFClampDoubleToUInt32() clamps double values into the range of uint32_t (i.e. 0 .. 0xFFFFFFFF)

_TIFFMultiply32() and _TIFFMultiply64() checks for an integer overflow of the multiplication result and return the multiplication result or 0 if an overflow would happen. The string where is printed in the error message in case an overflow happens and can be used to indicate where the function was called.

Releases

2 releases since Debian 12 (Bookworm); the text changed 1 time.

  1. 12
  2. 13

Author

LibTIFF contributors

From libtiff-dev 4.7.0-3+deb13u3 in Debian 13 (Trixie). Parsed by carta from the page's man source.