Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Update
zutils
zutils-1.7-zcat-buffer-overrun.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File zutils-1.7-zcat-buffer-overrun.patch of Package zutils
Author: Antonio Diaz Diaz <antonio@gnu.org> Description: zcat.cc: Fixed a buffer overrun on outbuf when '-v' is used. diff -Naurp zutils/zcat.cc zutils/zcat.cc --- zutils/zcat.cc +++ zutils/zcat.cc @@ -232,8 +232,9 @@ int cat( int infd, const int format_inde enum { buffer_size = 4096 }; // buffer with space for sentinel newline at the end uint8_t * const inbuf = new uint8_t[buffer_size+1]; - // buffer with space for character quoting and 255-digit line number - uint8_t * const outbuf = new uint8_t[(4*buffer_size)+256]; + // buffer with space for character quoting, 255-digit line number and + // worst case flushing respect to inbuf. + uint8_t * const outbuf = new uint8_t[(5*buffer_size)+256]; int retval = 0; Children children; if( !set_data_feeder( input_filename, &infd, children, format_index ) )
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