mesos-reviews mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil Conway <>
Subject Review Request 52085: Replaced usage of `strcpy` in stout.
Date Thu, 22 Sep 2016 09:58:51 GMT

This is an automatically generated e-mail. To reply, visit:

Review request for mesos and Alexander Rukletsov.

Repository: mesos


Various simple-minded static analysis tools warn against using `strcpy`
when the `src` buffer is not a C string literal. Although the way in
which stout was using `strcpy` should have been safe, `memcpy` is a more
direct way to express what we want to do anyway.


  3rdparty/stout/include/stout/os/mktemp.hpp 2e35c731aac9885024d64d9fd03c221e96ff3025 
  3rdparty/stout/include/stout/os/posix/mkdtemp.hpp 31acbd406c7d447d6f141201c0cfa153d948ef9f

  3rdparty/stout/include/stout/os/raw/argv.hpp 3ac62169be22eebaa56ec1a3b7cf1d0007b17870 



`make check` on OSX and Linux.


Neil Conway

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message