<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/libc/stdio, branch release/8.1.0</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=release%2F8.1.0</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=release%2F8.1.0'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2010-03-12T06:56:51Z</updated>
<entry>
<title>MFC r204447:</title>
<updated>2010-03-12T06:56:51Z</updated>
<author>
<name>Jaakko Heinonen</name>
<email>jh@FreeBSD.org</email>
</author>
<published>2010-03-12T06:56:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=324846ecfa1b8fd110d421572848e8e7194940bf'/>
<id>urn:sha1:324846ecfa1b8fd110d421572848e8e7194940bf</id>
<content type='text'>
In _gettemp(), check that the length of the path doesn't exceed
MAXPATHLEN. Otherwise the path name (or part of it) may not fit to
carrybuf causing a buffer overflow.

PR:		bin/140228
</content>
</entry>
<entry>
<title>MFC r197752:</title>
<updated>2010-01-24T20:15:59Z</updated>
<author>
<name>David Schultz</name>
<email>das@FreeBSD.org</email>
</author>
<published>2010-01-24T20:15:59Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=903d5593ab0ce02ab5a829ed98fae5c704b37c29'/>
<id>urn:sha1:903d5593ab0ce02ab5a829ed98fae5c704b37c29</id>
<content type='text'>
  Better glibc compatibility for getline/getdelim:

  - Tolerate applications that pass a NULL pointer for the buffer and
    claim that the capacity of the buffer is nonzero.

  - If an application passes in a non-NULL buffer pointer and claims the
    buffer has zero capacity, we should free (well, realloc) it
    anyway. It could have been obtained from malloc(0), so failing to
    free it would be a small memory leak.
</content>
</entry>
<entry>
<title>MFC r200802:</title>
<updated>2010-01-20T00:53:44Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2010-01-20T00:53:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6e6d19008bc00877ef94124cdeaede817bdf969f'/>
<id>urn:sha1:6e6d19008bc00877ef94124cdeaede817bdf969f</id>
<content type='text'>
Use vsprintf instead of rolling our own.

PR:		bin/140496
Submitted by:	Jeremy Huddleston &lt;jeremyhu apple.com&gt;
</content>
</entry>
<entry>
<title>MFC r200800:</title>
<updated>2010-01-20T00:53:03Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2010-01-20T00:53:03Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=bf2d481d44256937ba57787654ae1f8097276525'/>
<id>urn:sha1:bf2d481d44256937ba57787654ae1f8097276525</id>
<content type='text'>
Use vsscanf instead of rolling our own.

PR:		bin/140530
Submitted by:	Jeremy Huddleston &lt;jeremyhu apple.com&gt;
</content>
</entry>
<entry>
<title>MFC r200799:</title>
<updated>2010-01-20T00:52:24Z</updated>
<author>
<name>Xin LI</name>
<email>delphij@FreeBSD.org</email>
</author>
<published>2010-01-20T00:52:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=49399ca706df781a3317bbf9b002f236b8012061'/>
<id>urn:sha1:49399ca706df781a3317bbf9b002f236b8012061</id>
<content type='text'>
K&amp;R -&gt; ANSI prototype.
</content>
</entry>
<entry>
<title>MFC: r201836</title>
<updated>2010-01-15T19:42:09Z</updated>
<author>
<name>Christian Brueffer</name>
<email>brueffer@FreeBSD.org</email>
</author>
<published>2010-01-15T19:42:09Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=82dd0f696c02e250e27e96b5a9a5ccd44826f2b1'/>
<id>urn:sha1:82dd0f696c02e250e27e96b5a9a5ccd44826f2b1</id>
<content type='text'>
Remove unnecessary quoting and markup, add missing punctuation.
</content>
</entry>
<entry>
<title>MFC: r200019</title>
<updated>2009-12-07T08:38:44Z</updated>
<author>
<name>Christian Brueffer</name>
<email>brueffer@FreeBSD.org</email>
</author>
<published>2009-12-07T08:38:44Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=02a7ccf7463892f2164d5022ef4f26bbcfe87f79'/>
<id>urn:sha1:02a7ccf7463892f2164d5022ef4f26bbcfe87f79</id>
<content type='text'>
Fix the dprintf() prototype.
</content>
</entry>
<entry>
<title>MFC revs 199781,199782,199784,199785,199786:</title>
<updated>2009-12-02T02:47:29Z</updated>
<author>
<name>Garrett Wollman</name>
<email>wollman@FreeBSD.org</email>
</author>
<published>2009-12-02T02:47:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=28f2223875ad9a9be95a15ba343ff89d5743ef0a'/>
<id>urn:sha1:28f2223875ad9a9be95a15ba343ff89d5743ef0a</id>
<content type='text'>
  Eliminate dead stores.

  In __mbsconv(), if prec was zero, nconv could have been used
  uninitialized.  Initialize it to a safe value so that there's no
  chance of returning an error if stack garbage happens to be equal to
  (size_t)-1 or (size_t)-2.

  In svc_raw_reply(), don't leave stat uninitialized if the MSG_ACCEPTED
  &amp;&amp; SUCCESS case succeeds.  The stack garbage might be zero.

  In clnt_raw_create(), avoid minor race condition initializing the
  file-scope variable clntraw_private.

Found by:		Clang static analyzer
</content>
</entry>
<entry>
<title>Fix fwrite() to return 0 when size or nmemb are zero.</title>
<updated>2009-07-12T13:09:43Z</updated>
<author>
<name>Ed Schouten</name>
<email>ed@FreeBSD.org</email>
</author>
<published>2009-07-12T13:09:43Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=77822acff7bf72c4a8e4020fb9256372f851c65e'/>
<id>urn:sha1:77822acff7bf72c4a8e4020fb9256372f851c65e</id>
<content type='text'>
Right now nmemb is returned when size is 0. In newer versions of the
standards, it is explicitly required that fwrite() should return 0.

Submitted by:	Christoph Mallon
Approved by:	re (kib)
</content>
</entry>
<entry>
<title>Return -1 instead of 0 upon reaching EOF. This is somewhat ill-advised</title>
<updated>2009-04-06T13:50:04Z</updated>
<author>
<name>David Schultz</name>
<email>das@FreeBSD.org</email>
</author>
<published>2009-04-06T13:50:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6685ac34d91d361a03918777934cf037bedd8841'/>
<id>urn:sha1:6685ac34d91d361a03918777934cf037bedd8841</id>
<content type='text'>
because it means getdelim() returns -1 for both error and EOF, and
never returns 0. However, this is what the original GNU	implementation
does, and POSIX inherited the bug.

Reported by:	marcus@
</content>
</entry>
</feed>
