Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP1:Update
scrot
07_fix-formatstring.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 07_fix-formatstring.patch of Package scrot
Author: George Danchev <danchev@spnet.net> Description: Prevent arbitrary long file names --- a/src/options.c +++ b/src/options.c @@ -124,6 +124,12 @@ if (!opt.output_file) { opt.output_file = argv[optind++]; + + if ( strlen(opt.output_file) > 256 ) { + printf("output filename too long.\n"); + exit(EXIT_FAILURE); + } + if (opt.thumb) opt.thumb_file = name_thumbnail(opt.output_file); }
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