forked from OSchip/llvm-project
Allow the "size" of a buffer access check to be either signed or unsigned. Fixes PR7925.
llvm-svn: 111205
This commit is contained in:
parent
40a5a7de1d
commit
5ccde8593f
|
@ -248,7 +248,7 @@ const GRState *CStringChecker::CheckBufferAccess(CheckerContext &C,
|
|||
SValuator &SV = VM.getSValuator();
|
||||
ASTContext &Ctx = C.getASTContext();
|
||||
|
||||
QualType SizeTy = Ctx.getSizeType();
|
||||
QualType SizeTy = Size->getType();
|
||||
QualType PtrTy = Ctx.getPointerType(Ctx.CharTy);
|
||||
|
||||
// Check that the first buffer is non-null.
|
||||
|
|
Loading…
Reference in New Issue