Projects
Eulaceura:Factory
djvulibre
_service:obs_scm:CVE-2021-32493.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:CVE-2021-32493.patch of Package djvulibre
diff --git a/libdjvu/GBitmap.cpp b/libdjvu/GBitmap.cpp index c2fdbe4..e271a1d 100644 --- a/libdjvu/GBitmap.cpp +++ b/libdjvu/GBitmap.cpp @@ -69,6 +69,7 @@ #include <stddef.h> #include <stdlib.h> #include <string.h> +#include <climits> // - Author: Leon Bottou, 05/1997 @@ -1284,6 +1285,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
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2