Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 19 Jul 2013 01:49:09 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: musl regression tests

thanks for the test case, i will add it once i get the repo up

* Kirill Ternosvky <kternovsky@...dex.ru> [2013-07-18 19:20:23 -0400]:
> 	char target_buffer[2] = { 'a', 'a' };
> 	char source_buffer = 'b';
> 
> 	sscanf(&source_buffer, "%c", &target_buffer);
> 
> 	if(target_buffer[1] != 'a' && !target_buffer[1])

target_buffer[1] != 'a' is enough in this case
any corruption is a corruption not just 0

> 	{
> 		t_error("scanf stored null byte for %%c conversion\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.