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 - User can't switch on "(CAUTION) snprintf" hint
Summary: User can't switch on "(CAUTION) snprintf" hint
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: danilasergeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-09-29 13:04 UTC by soldatov
Modified: 2015-09-30 01:19 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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