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 254265 - Add functionality for checking printf parameters
Summary: Add functionality for checking printf parameters
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: danilasergeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-11 10:34 UTC by danilasergeyev
Modified: 2015-09-02 05:16 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description danilasergeyev 2015-08-11 10:34:03 UTC
It will be useful to have a hint which will tells users that format string passed to printf function is not correct, or that function parameters are not match with the format string.
Comment 1 danilasergeyev 2015-08-11 10:48:52 UTC
Hint implemented in change sets:
https://hg.netbeans.org/cnd-main/rev/8fc14892779d
https://hg.netbeans.org/cnd-main/rev/5cfc11ab0a3a
Comment 2 danilasergeyev 2015-08-11 17:36:52 UTC
Additional fix:
https://hg.netbeans.org/cnd-main/rev/a274bdfb91fb
Comment 3 Quality Engineering 2015-08-12 01:17:20 UTC
Integrated into 'main-silver', will be available in build *201508120002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8fc14892779d
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: fixed bug #254265 Add functionality for checking printf parameters
Comment 4 danilasergeyev 2015-08-12 09:44:33 UTC
additional fix:
https://hg.netbeans.org/cnd-main/rev/91711ac1a22d
Comment 5 Quality Engineering 2015-08-13 01:20:05 UTC
Integrated into 'main-silver', will be available in build *201508130002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a274bdfb91fb
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: Bug #254265 Add functionality for checking printf parameters - additional fix
Comment 6 danilasergeyev 2015-08-14 13:50:18 UTC
https://hg.netbeans.org/cnd-main/rev/f101e10c96bc
Comment 7 danilasergeyev 2015-08-14 13:50:58 UTC
previous change set is an extra fix
Comment 8 danilasergeyev 2015-08-14 15:13:00 UTC
code cleanup:
https://hg.netbeans.org/cnd-main/rev/4566872a7c1e
Comment 9 danilasergeyev 2015-08-14 16:22:12 UTC
refactored:
https://hg.netbeans.org/cnd-main/rev/9cae15839ef3
Comment 10 Quality Engineering 2015-08-15 01:58:46 UTC
Integrated into 'main-silver', will be available in build *201508150002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f101e10c96bc
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: bug #254265 printf parameters check - extra fix (add lock)
Comment 11 danilasergeyev 2015-08-19 09:41:33 UTC
Add fixes:
https://hg.netbeans.org/cnd-main/rev/5899b8e0e9e8
Comment 12 danilasergeyev 2015-08-19 10:28:43 UTC
code refactoring:
https://hg.netbeans.org/cnd-main/rev/2da1282414ed
Comment 13 Quality Engineering 2015-08-20 01:26:50 UTC
Integrated into 'main-silver', will be available in build *201508200002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/5899b8e0e9e8
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: bug #254265 Add functionality for checking printf parameters - add fixes
Comment 14 Quality Engineering 2015-08-28 01:24:40 UTC
Integrated into 'main-silver', will be available in build *201508280002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/7ed9a9fb9b7c
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: bug #254265 printf check - refactoring, traverse references in file
Comment 15 danilasergeyev 2015-09-01 09:08:11 UTC
Add flags for the checking mode:
    -J-Dprintf.check.enable=true/false (true by default) to set up whether printf checks are enabled by default or not

    -J-Dprintf.check.strict=true/false (false by default) to set up strict checking

change set:
https://hg.netbeans.org/cnd-main/rev/af7a7f76a660
Comment 16 Quality Engineering 2015-09-02 05:16:20 UTC
Integrated into 'main-silver', will be available in build *201509020320* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/af7a7f76a660
User: Danila Sergeyev <danilasergeyev@netbeans.org>
Log: bug #254265 checking printf parameters - add flags for checking mode