Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:Update
djvulibre.20248
djvulibre-CVE-2021-32493.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File djvulibre-CVE-2021-32493.patch of Package djvulibre.20248
Index: djvulibre-3.5.25/libdjvu/GBitmap.cpp =================================================================== --- djvulibre-3.5.25.orig/libdjvu/GBitmap.cpp 2021-05-12 10:59:37.251889970 +0200 +++ djvulibre-3.5.25/libdjvu/GBitmap.cpp 2021-05-12 10:59:37.311890318 +0200 @@ -69,6 +69,7 @@ #include <stddef.h> #include <stdlib.h> #include <string.h> +#include <climits> // - Author: Leon Bottou, 05/1997 @@ -1282,6 +1283,8 @@ GBitmap::decode(unsigned char *runs) // initialize pixel array if (nrows==0 || ncolumns==0) G_THROW( ERR_MSG("GBitmap.not_init") ); + if (ncolumns > USHRT_MAX - border) + G_THROW("GBitmap: row size exceeds maximum (corrupted file?)"); bytes_per_row = ncolumns + border; if (runs==0) G_THROW( ERR_MSG("GBitmap.null_arg") );
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