[mapserver-commits] [mapserver/mapserver] 70a8c2: Replace `strlcpy` with `strncpy` in `msIO_stripStd...

GitHub noreply at github.com
Fri Jun 28 05:57:08 PDT 2013


  Branch: refs/heads/branch-6-2
  Home:   https://github.com/mapserver/mapserver
  Commit: 70a8c298edb84245321bd0080e21363ecc9a2fb3
      https://github.com/mapserver/mapserver/commit/70a8c298edb84245321bd0080e21363ecc9a2fb3
  Author: Homme Zwaagstra <hrz at geodata.soton.ac.uk>
  Date:   2013-06-28 (Fri, 28 Jun 2013)

  Changed paths:
    M mapio.c

  Log Message:
  -----------
  Replace `strlcpy` with `strncpy` in `msIO_stripStdoutBufferContentType()`

The use of `strlcpy` was producing *uninitialised value* errors in
valgrind.  It appears this was due to the fact that `strlcpy` expects
the source string to be null terminated which is not always the case
in this context.





More information about the mapserver-commits mailing list