Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.3:Update
exiv2
Added-check-for-overflows-in-calculation-of-siz...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File Added-check-for-overflows-in-calculation-of-size.patch of Package exiv2
From dd3ad852820503422de73b2e0793c8b4b0f45a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dan=20=C4=8Cerm=C3=A1k?= <dan.cermak@cgc-instruments.com> Date: Sat, 7 Oct 2017 23:19:13 +0200 Subject: [PATCH 8/9] Added check for overflows in calculation of size (cherry picked from commit c2c9fab580f8d6ea237718ad63921cde1d8980f7) --- src/tiffvisitor.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tiffvisitor.cpp b/src/tiffvisitor.cpp index 2917c9bb..6e5d1754 100644 --- a/src/tiffvisitor.cpp +++ b/src/tiffvisitor.cpp @@ -1492,6 +1492,9 @@ namespace Exiv2 { return; } p += 4; + if (count > std::numeric_limits<uint32_t>::max() / typeSize) { + throw Error(59); + } uint32_t size = typeSize * count; int32_t offset = getLong(p, byteOrder()); byte* pData = p; -- 2.14.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor