|
Message-ID: <op.w0g65in5bp85gn@cctorw7d10.capitalc.internal> Date: Fri, 19 Jul 2013 11:40:20 -0400 From: "Kirill Ternosvky" <kternovsky@...dex.ru> To: musl@...ts.openwall.com Subject: Re: musl regression tests /* FILE: wcsncpy-read-overflow.c */ /* Commit: e98136207ad1a6df1cdc1578e4ad56f8f0db4047 */ #include <wchar.h> #include "test.h" int main(void) { wchar_t dest[] = { 'a', 'a', }; wchar_t src[] = { 0, 'b', }; wcsncpy(dest, src, 1); if(dest[1] != 'a') { t_error("wcsncpy copied more than N\n"); } return 0; }
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.