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.
#include <stdio.h> int main(int argc, char** argv) { char* format_str = "%s%lld"; printf(format_str, "test", (long long) 12); // wrong error mark: "Wrong number of arguments" return 0; } Audit doesn't recognize format_str as a format string passed to printf and treated second argument as a format string instead.
Fixed, enum, change set: b20b8d98e46d
Additional fix, enum, 79c63598c7ae
Additional fix, enum, b23c6a10ce1d
Integrated into 'main-silver', will be available in build *201510300002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/09fe97f1378c User: Danila Sergeyev <danilasergeyev@netbeans.org> Log: fix bug #255693 printf audit doesn't recognize format string passed as variable (transplanted from b20b8d98e46d4dcaa9de9f4df31afc7967fff0ff)
Verified in NetBeans 8.1patch1