Re: [chrony-dev] [GIT] chrony/chrony.git branch master updated. 4.0-pre2-64-ge1d9a57

[ Thread Index | Date Index | More chrony.tuxfamily.org/chrony-dev Archives ]


Warning during compilation on macOS

gcc -O2 -g -fstack-protector-strong --param=ssp-buffer-size=4 -Wmissing-prototypes -Wall -pthread  -c conf.c
conf.c:1674:18: warning: format string is not a string literal
      (potentially insecure) [-Wformat-security]
                 *(char **)ARR_GetElement(ntp_source_dirs, i)) >= sizeof (buf))
                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: 
      expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^~~~~~~~~~~
conf.c:1674:18: note: treat the string as an argument to avoid this
                 *(char **)ARR_GetElement(ntp_source_dirs, i)) >= sizeof (buf))
                 ^
                 "%s", 
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_stdio.h:57:62: note: 
      expanded from macro 'snprintf'
  __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
                                                             ^
1 warning generated.

> On 11/06/2020, at 1:39 AM, git@xxxxxxxxxxxxx wrote:
> 
> This is an automated email from git. It was generated because a ref
> change was pushed to the "chrony/chrony.git" repository.
> 



Bryan Christianson
bryan@xxxxxxxxxxxxx




--
To unsubscribe email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "unsubscribe" in the subject.
For help email chrony-dev-request@xxxxxxxxxxxxxxxxxxxx with "help" in the subject.
Trouble?  Email listmaster@xxxxxxxxxxxxxxxxxxxx.


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/