This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
C Code: #include <stdio.h> #include <stdlib.h> int main(int argc, char** argv) { char s[10]; sprintf(s, "%s", "abcd"); return (EXIT_SUCCESS); } Automatic test expects "sprintf is a insecure function" hint. CLang+MacOSX doesn't display hint. I think because "sprintf" is a macro.
Same problem with "snprintf" P.S. This option switched off by default. But sign doesn't appear if I switched on this option.
What version of OS X was used for tests? Seems to work fine on the latest 10.11 El Capitan
I use 10.11 too. Any step are important in my scenario. 1) C only 2) CLang only
fixed in change set: http://hg.netbeans.org/cnd-main/rev/5e8a58724d58
Integrated into 'main-silver', will be available in build *201608020002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/5e8a58724d58 User: Danila Sergeyev <danilasergeyev@netbeans.org> Log: fix bug #258463 MacOSX and CLang: sprintf does not have security hint