Skip to content

Commit 2020786

Browse files
authored
C++: fix format
1 parent b0242dc commit 2020786

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cpp/ql/lib/semmle/code/cpp/commons/Printf.qll

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ class ValueFlowAnalysis extends BufferWriteEstimationReason, TValueFlowAnalysis
5555
override string toString() { result = "based on flow analysis of value bounds" }
5656

5757
override BufferWriteEstimationReason combineWith(BufferWriteEstimationReason other) {
58-
other = TTypeBoundsAnalysis() and result = TTypeBoundsAnalysis() or
58+
other = TTypeBoundsAnalysis() and result = TTypeBoundsAnalysis()
59+
or
5960
other = TValueFlowAnalysis() and result = TValueFlowAnalysis()
6061
}
6162
}
@@ -1046,7 +1047,7 @@ class FormatLiteral extends Literal {
10461047
/**
10471048
* Gets the maximum length of the string that can be produced by the nth
10481049
* conversion specifier of this format string, specifying the estimation reason;
1049-
* has no result if this cannot be determined.
1050+
* has no result if this cannot be determined.
10501051
*/
10511052
int getMaxConvertedLength(int n, BufferWriteEstimationReason reason) {
10521053
exists(int len |

0 commit comments

Comments
 (0)