File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
lib/StaticAnalyzer/Checkers Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -279,7 +279,7 @@ static std::string getTaintMsg(std::string RegName) {
279
279
SmallString<128 > Buf;
280
280
llvm::raw_svector_ostream Out (Buf);
281
281
Out << " Access of " << RegName
282
- << " with a tainted offset that may be too large " ;
282
+ << " with a tainted offset that may be out of bounds " ;
283
283
return std::string (Buf);
284
284
}
285
285
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ void taintedIndex(void) {
18
18
// expected-note@-2 {{Taint propagated to the 2nd argument}}
19
19
array [index ] = 5 ;
20
20
// expected-warning@-1 {{Potential out of bound access to 'array' with tainted offset}}
21
- // expected-note@-2 {{Access of 'array' with a tainted offset that may be too large }}
21
+ // expected-note@-2 {{Access of 'array' with a tainted offset that may be out of bounds }}
22
22
}
23
23
24
24
void arrayOverflow (void ) {
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ int taintDiagnosticOutOfBound(void) {
30
30
scanf ("%d" , & index ); // expected-note {{Taint originated here}}
31
31
// expected-note@-1 {{Taint propagated to the 2nd argument}}
32
32
return Array [index ]; // expected-warning {{Potential out of bound access to 'Array' with tainted offset}}
33
- // expected-note@-1 {{Access of 'Array' with a tainted offset that may be too large }}
33
+ // expected-note@-1 {{Access of 'Array' with a tainted offset that may be out of bounds }}
34
34
}
35
35
36
36
int taintDiagnosticDivZero (int operand ) {
You can’t perform that action at this time.
0 commit comments