Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP2:GA
cracklib
0004-overflow-processing-long-words.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0004-overflow-processing-long-words.patch of Package cracklib
The input word is guaranteed to be at most STRINGSIZE-1 in length. One of the mangle operations involves duplicating the input word, resulting in a string twice the length to be accommodated by both area variables. Howard Guo <hguo@suse.com> 2016-08-17 diff -rupN 3/lib/rules.c 3-patched/lib/rules.c --- 3/lib/rules.c 2016-08-16 14:16:24.033261876 +0200 +++ 3-patched/lib/rules.c 2016-08-17 13:57:14.485782894 +0200 @@ -434,9 +434,8 @@ Mangle(input, control) /* returns a poi { int limit; register char *ptr; - static char area[STRINGSIZE]; - char area2[STRINGSIZE]; - area[0] = '\0'; + static char area[STRINGSIZE * 2] = {0}; + char area2[STRINGSIZE * 2] = {0}; strcpy(area, input); for (ptr = control; *ptr; ptr++)
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