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.

Bug 255620

Summary: User can't switch on "(CAUTION) snprintf" hint
Product: cnd Reporter: soldatov <soldatov>
Component: -- Other --Assignee: danilasergeyev
Status: RESOLVED FIXED    
Severity: normal    
Priority: P2    
Version: 8.1   
Hardware: PC   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:

Description soldatov 2015-09-29 13:04:51 UTC
C code:

#include <stdio.h>

int main(int argc, char**argv) {
    char msg[123];
    snprintf(msg, 10, "%s - %s", "abc", "def");
    return 0;
}

Scenario:
- Open Options window
- Click on Editor icon
- Select Hints tab and select "C/C++" language
- Switch on "(CAUTION) snprintf" check box
- Push OK button
- Open file
==> no any hints in editor
Comment 1 danilasergeyev 2015-09-29 14:45:17 UTC
fixed, change set:
https://hg.netbeans.org/cnd-main/rev/961a0c034ccc
Comment 2 Quality Engineering 2015-09-30 01:19:54 UTC
Integrated into 'main-silver', will be available in build *201509300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/961a0c034ccc
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: fix bug #255620 User can't switch on "(CAUTION) snprintf" hint