Changes between Version 1 and Version 2 of rfc8_devguide


Ignore:
Timestamp:
Jan 10, 2008, 12:30:52 PM (16 years ago)
Author:
Even Rouault
Comment:

Advertize RFC-19 new API

Legend:

Unmodified
Added
Removed
Modified
  • rfc8_devguide

    v1 v2  
    5959is to capitalize each word in a variable name.
    6060
     61== Memory allocation ==
     62
     63As per [wiki:rfc19_safememalloc RFC 19: Safer memory allocation in GDAL],
     64you can use VSIMalloc2(x, y) instead of doing CPLMalloc(x * y) or VSIMalloc(x * y).
     65VSIMalloc2 will detect potential overflows in the multiplication and return a NULL pointer
     66if it happens. This can be useful in GDAL raster drivers where x and y are
     67related to the raster dimensions or raster block sizes. Similarly,
     68VSIMalloc3(x, y, z) can be used as a replacement for CPLMalloc(x * y * z).
     69
    6170== Headers, and Comment Blocks ==
    6271