forked from OSchip/llvm-project
parent
e281e99f76
commit
5a9b1ec94c
|
@ -496,7 +496,7 @@ SVal CStringChecker::getCStringLength(CheckerContext &C, const GRState *&state,
|
|||
llvm::SmallString<120> buf;
|
||||
llvm::raw_svector_ostream os(buf);
|
||||
os << "Argument to byte string function is the address of the label '"
|
||||
<< Label->getLabel()->getID()->getName()
|
||||
<< Label->getLabel()->getName()
|
||||
<< "', which is not a null-terminated string";
|
||||
|
||||
// Generate a report for this bug.
|
||||
|
|
|
@ -380,9 +380,7 @@ bool MallocChecker::SummarizeValue(llvm::raw_ostream& os, SVal V) {
|
|||
else if (loc::ConcreteInt *ConstAddr = dyn_cast<loc::ConcreteInt>(&V))
|
||||
os << "a constant address (" << ConstAddr->getValue() << ")";
|
||||
else if (loc::GotoLabel *Label = dyn_cast<loc::GotoLabel>(&V))
|
||||
os << "the address of the label '"
|
||||
<< Label->getLabel()->getID()->getName()
|
||||
<< "'";
|
||||
os << "the address of the label '" << Label->getLabel()->getName() << "'";
|
||||
else
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue