Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date: Fri, 16 Nov 2012 11:40:57 +0400
From: Yuri Kozlov <yuray@...yakino.ru>
To: musl@...ts.openwall.com
Subject: src/stdio/__stdio_read.c

Hello.

size_t __stdio_read(FILE *f, unsigned char *buf, size_t len)
{
	ssize_t cnt;
...
	cnt = syscall(SYS_readv, ...)

	if (cnt <= 0) {
		f->flags |= F_EOF ^ ((F_ERR^F_EOF) & cnt);
		f->rpos = f->rend = 0;
		return cnt;
	}
...
}

It not raise a problem when a signed value return as unsigned?

-- 
Best Regards,
Yuri Kozlov

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.