Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
poppler.30682
0001-Fix-crash-in-malformed-document.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-Fix-crash-in-malformed-document.patch of Package poppler.30682
From 5266fa426d73c5dbdb3dd903d50885097833acc6 Mon Sep 17 00:00:00 2001 From: Albert Astals Cid <aacid@kde.org> Date: Tue, 20 Jun 2017 23:58:26 +0200 Subject: [PATCH] Fix crash in malformed document Bug #101526 --- poppler/Stream.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poppler/Stream.cc b/poppler/Stream.cc index 4ac91078..d93c560e 100644 --- a/poppler/Stream.cc +++ b/poppler/Stream.cc @@ -468,7 +468,7 @@ ImageStream::ImageStream(Stream *strA, int widthA, int nCompsA, int nBitsA) { nVals = width * nComps; inputLineSize = (nVals * nBits + 7) >> 3; - if (nBits <= 0 || nVals > INT_MAX / nBits - 7 || width > INT_MAX / nComps) { + if (nComps <= 0 || nBits <= 0 || nVals > INT_MAX / nBits - 7 || width > INT_MAX / nComps) { inputLineSize = -1; } inputLine = (Guchar *)gmallocn_checkoverflow(inputLineSize, sizeof(char)); -- 2.16.3
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