On 05/08/2017 03:12 AM, Harish Kumara Marappa wrote: > Hi, > > I am getting following build error while building 1.3-rel branch. > > resource/IPCA/src/ocfframework.cpp:1725:85: error: 'strnlen_s' was not > declared > in this scope > strnlen_s(passwordBuffer, > passwordBufferSize)); > > ^ > scons: *** [out/linux/x86/release/resource/IPCA/src/ocfframework.os] Error 1 > scons: building terminated because of errors. > > *Build command: *scons SECURED=1 MULTIPLE_OWNER=1 WITH_CLOUD=1 WITH_TCP=1 > TARGET_ARCH=x86 TARGET_TRANSPORT=IP > > *Commit hash: *e3726f55bea75e3e303745885fcfdfe0450203e7 > > Please let me know if anybody faced the same and found patch for it.
Normally the answer to one of these is "someone forgot to include <string.h>", that's happened several times in the past. However this function is one of the bounds-checked functions from the optional ISO C 11 annex, and is not widely supported. Should not be used, since at least the GCC/Clang implementations on Linux do not provide these. >From the standard: K.2 Scope This annex specifies a series of optional extensions that can be useful in the mitigation of security vulnerabilities in programs, and comprise new functions, macros, and types declared or defined in existing standard headers. An implementation that defines _ _STDC_LIB_EXT1_ _ shall conform to the specifications in this annex. (gcc has never defined this) Would you be able to file a bug on this?
