We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1b71acc commit e144778Copy full SHA for e144778
cpp/ql/src/semmle/code/cpp/commons/Printf.qll
@@ -866,15 +866,7 @@ class FormatLiteral extends Literal {
866
len = 1
867
or (
868
this.getConversionChar(n).toLowerCase()="c" and
869
- if (this.getEffectiveCharConversionChar(n)="C" and
870
- not isMicrosoft() and
871
- not isWideCharDefault()) then (
872
- len = 6 // MB_LEN_MAX
873
- // the wint_t (wide character) argument is converted
874
- // to a multibyte sequence by a call to the wcrtomb(3)
875
- ) else (
876
- len = 1 // e.g. 'a'
877
- )
+ len = 1 // e.g. 'a'
878
) or this.getConversionChar(n).toLowerCase()="f" and
879
exists(int dot, int afterdot |
880
(if this.getPrecision(n) = 0 then dot = 0 else dot = 1)
0 commit comments