Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <op.w0hh5cf1bp85gn@cctorw7d10.capitalc.internal>
Date: Fri, 19 Jul 2013 15:37:50 -0400
From: "Kirill Ternosvky" <kternovsky@...dex.ru>
To: musl@...ts.openwall.com
Subject: Re: musl regression tests

/* FILE: scanf-match-literal-eof.c */
/*
  * Commit: 5efc6af4ebb9d50eb978d0338835544fdfea0396
  * scanf misreports literal match as input failure when reading EOF (null  
for sscanf)
  */

#include <stdio.h>
#include "test.h"

int main(void)
{
	char buf[] = { 0 };
	int match_count;

	match_count = sscanf(buf, "a");

	if(match_count != EOF)
	{
		t_error("scanf reported match failure instead of input failure on  
literal EOF match\n");
	}

	return t_status;
}

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.