Lines Matching defs:Len
276 if (const auto *Len = dyn_cast<ConstantInt>(Call->getArgOperand(2))) {
277 // memset_chk writes at most Len bytes, memcpy_chk reads/writes at most
278 // Len bytes. They may read/write less, if Len exceeds the specified max
280 Size = LocationSize::upperBound(Len->getZExtValue());
288 if (const auto *Len = dyn_cast<ConstantInt>(Call->getArgOperand(2))) {
289 // strncpy is guaranteed to write Len bytes, but only reads up to Len
291 Size = ArgIdx == 0 ? LocationSize::precise(Len->getZExtValue())
292 : LocationSize::upperBound(Len->getZExtValue());