Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 775861c

Browse files
committed
[CPP-370] Minor textual tweaks.
1 parent de10598 commit 775861c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

cpp/ql/src/Likely Bugs/Format/NonConstantFormat.ql

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,7 @@ class ConstFlow extends DataFlow::Configuration {
7070
ConstFlow() { this = "ConstFlow" }
7171

7272
override predicate isSource(DataFlow::Node source) {
73-
none()
74-
//isConst(source.asExpr())
73+
isConst(source.asExpr())
7574
}
7675

7776
override predicate isSink(DataFlow::Node sink) {

cpp/ql/test/query-tests/Likely Bugs/Format/NonConstantFormat/NonConstantFormat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ extern int printf(const char *fmt, ...);
22

33
// For the following `...gettext` functions, we assume that
44
// all translations preserve the type and order of `%` specifiers
5-
// (and hence are safe to use as format strings). This is
5+
// (and hence are safe to use as format strings). This
66
// assumption is hard-coded into the query.
77

88
extern char *gettext (const char *__msgid);

0 commit comments

Comments
 (0)