Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15
libraw.27863
libraw-CVE-2021-32142.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File libraw-CVE-2021-32142.patch of Package libraw.27863
iff --git a/src/libraw_datastream.cpp b/src/libraw_datastream.cpp index a5c1a84a..a31ae9dd 100644 Index: LibRaw-0.18.9/src/libraw_datastream.cpp =================================================================== --- LibRaw-0.18.9.orig/src/libraw_datastream.cpp +++ LibRaw-0.18.9/src/libraw_datastream.cpp @@ -155,6 +155,7 @@ INT64 LibRaw_file_datastream::tell() char* LibRaw_file_datastream::gets(char *str, int sz) { + if(sz<1) return NULL; if(substream) return substream->gets(str,sz); LR_STREAM_CHK(); std::istream is(f.get()); @@ -357,6 +358,7 @@ INT64 LibRaw_buffer_datastream::tell() char* LibRaw_buffer_datastream::gets(char *s, int sz) { + if(sz<1) return NULL; if (substream) return substream->gets(s,sz); unsigned char *psrc,*pdest,*str; str = (unsigned char *)s; @@ -549,6 +551,7 @@ INT64 LibRaw_bigfile_datastream::tell() char* LibRaw_bigfile_datastream::gets(char *str, int sz) { + if(sz<1) return NULL; LR_BF_CHK(); return substream?substream->gets(str,sz):fgets(str,sz,f); }
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