Credit to OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52382
Avoid null pointer deref.
This commit is contained in:
parent
baf1969ec7
commit
6bb956ad80
@ -834,6 +834,7 @@ void QuickTimeVideo::userDataDecoder(size_t size_external) {
|
||||
}
|
||||
|
||||
else if (equalsQTimeTag(buf, "CMbo") || equalsQTimeTag(buf, "Cmbo")) {
|
||||
enforce(tv, Exiv2::ErrorCode::kerCorruptedMetadata);
|
||||
io_->readOrThrow(buf.data(), 2);
|
||||
buf.data()[2] = '\0';
|
||||
tv_internal = find(cameraByteOrderTags, Exiv2::toString(buf.data()));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user