Fix check (on comparing unsigned minus signed greater zero)
V555 The expression 'object->sizeDataArea_ - buf.size_ > 0' will work as 'object->sizeDataArea_ != buf.size_'. tiffvisitor.cpp 911
This commit is contained in:
parent
bb9034e029
commit
eca251865f
@ -905,7 +905,7 @@ namespace Exiv2 {
|
||||
#endif
|
||||
DataBuf buf = object->pValue()->dataArea();
|
||||
memcpy(object->pDataArea_, buf.pData_, buf.size_);
|
||||
if (object->sizeDataArea_ - buf.size_ > 0) {
|
||||
if (object->sizeDataArea_ > static_cast<uint32_t>(buf.size_)) {
|
||||
memset(object->pDataArea_ + buf.size_,
|
||||
0x0, object->sizeDataArea_ - buf.size_);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user