mirror of
https://github.com/github/codeql.git
synced 2026-05-02 12:15:17 +02:00
Update cpp/ql/lib/semmle/code/cpp/commons/Printf.qll
Co-authored-by: Geoffrey White <40627776+geoffw0@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
e2ab1c8c5e
commit
982de28b89
@@ -277,7 +277,7 @@ class FormattingFunctionCall extends Expr {
|
||||
*/
|
||||
bindingset[f]
|
||||
private int lengthInBase10(float f) {
|
||||
f = 0 and result = 0
|
||||
f = 0 and result = 1
|
||||
or
|
||||
result = f.log10().ceil()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user