| AWARE [SYSTEMS] | Imaging expertise for the Delphi developer | |||||||
![]() |
TIFF and LibTiff Mailing List Archive | |||||||
LibTiff Mailing List
TIFF and LibTiff Mailing List Archive Contact
The TIFF Mailing List Homepage |
Thread2010.07.08 18:06 "Re: strlcpy vs strncpy", by Olivier PaquetOn Thu, Jul 8, 2010 at 12:25 PM, Bob Friesenhahn <bfriesen@simple.dallas.tx.us> wrote: > GraphicsMagick is using strlcpy() and strlcat() for secure string > copies. I will be happy to contribute versions that I wrote myself > for use in libtiff if libtiff choses to rely on these more secure > functions. Libtiff should name the replacement functions differently > in order to avoid any possible conflict/confusion with system provided > versions, or versions from some dependent library or program. This seems to only affect tiffcrop and tiffsplit in a few places so maybe we could fix the code too? Some cases in tiffsplit appear useless anyway (strncpy in a buffer which was dynamically allocated to be large enough to contain the string). If have nothing against the new functions though. Whatever requires the least amount of work and is safest gets my vote :] Olivier |
|||||||