@@ -31,11 +31,11 @@ func glogTest() {
31
31
glog .Warningln (text ) // $ logger=text
32
32
33
33
// components corresponding to the format specifier "%T" are not considered vulnerable
34
- glog .Errorf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text
35
- glog .Exitf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text
36
- glog .Fatalf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text
37
- glog .Infof ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text
38
- glog .Warningf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text
34
+ glog .Errorf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text type-logger=v
35
+ glog .Exitf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text type-logger=v
36
+ glog .Fatalf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text type-logger=v
37
+ glog .Infof ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text type-logger=v
38
+ glog .Warningf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text type-logger=v
39
39
40
40
klog .Error (text ) // $ logger=text
41
41
klog .ErrorDepth (0 , text ) // $ logger=text
@@ -59,9 +59,9 @@ func glogTest() {
59
59
klog .Warningln (text ) // $ logger=text
60
60
61
61
// components corresponding to the format specifier "%T" are not considered vulnerable
62
- klog .Errorf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text
63
- klog .Exitf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text
64
- klog .Fatalf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text
65
- klog .Infof ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text
66
- klog .Warningf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text
62
+ klog .Errorf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text type-logger=v
63
+ klog .Exitf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text type-logger=v
64
+ klog .Fatalf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text type-logger=v
65
+ klog .Infof ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text type-logger=v
66
+ klog .Warningf ("%s: found type %T" , text , v ) // $ logger="%s: found type %T" logger=text type-logger=v
67
67
}
0 commit comments