Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 42245 Details for
Bug 68263
app-text/recode-3.6 - recode_string() clobbers out-of-bounds memory
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
program which demos the "bad result text" bug in recode_string()
recode-bug.c (text/plain), 698 bytes, created by
Ken Pizzini
on 2004-10-20 04:51:24 UTC
(
hide
)
Description:
program which demos the "bad result text" bug in recode_string()
Filename:
MIME Type:
Creator:
Ken Pizzini
Created:
2004-10-20 04:51:24 UTC
Size:
698 bytes
patch
obsolete
>#include <stdio.h> >#include <stdlib.h> >#include <stdbool.h> >#include <locale.h> >#include <recode.h> > >int >main(int argc, char **argv) >{ > RECODE_OUTER outer = recode_new_outer(true); > RECODE_REQUEST request = recode_new_request(outer); > char *output; > > setlocale(LC_ALL,""); > recode_scan_request(request, "UTF-8..ISO-8859-1"); > > output = recode_string(request, "abcdefghijklmnopqrst ABCDEFGHIJKLMNOPQRST\n"); > fputs(output, stdout); > free(output); > > output = recode_string(request, "...................................\n"); > fputs(output, stdout); > free(output); > > recode_delete_request(request); > recode_delete_outer(outer); > putchar('\n'); > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 68263
: 42245 |
69209
|
487884