Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4:Update
chasen
bnc#735830-buffer-overflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bnc#735830-buffer-overflow.patch of Package chasen
Index: chasen-2.4.2/lib/chalib.c =================================================================== --- chasen-2.4.2.orig/lib/chalib.c +++ chasen-2.4.2/lib/chalib.c @@ -306,9 +306,14 @@ chasen_sparse_main(char *input, FILE *ou */ while (*input) { int c = 0, len, cursor; - if ((crlf = strpbrk(input, "\r\n")) == NULL) + if ((crlf = strpbrk(input, "\r\n")) == NULL) { len = strlen(input); - else { + if (len >= CHA_INPUT_SIZE) { + len = CHA_INPUT_SIZE - 1; + crlf = input + CHA_INPUT_SIZE - 2; + c = 0; + } + } else { len = crlf - input; c = *crlf; *crlf = '\0';
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