<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/library/std/src/io/buffered/bufreader.rs, branch try</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=try</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=try'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2025-03-16T01:40:03+00:00</updated>
<entry>
<title>Rollup merge of #137890 - lolbinarycat:docs-bufreader-peek-consume, r=Mark-Simulacrum</title>
<updated>2025-03-16T01:40:03+00:00</updated>
<author>
<name>许杰友 Jieyou Xu (Joe)</name>
<email>39484203+jieyouxu@users.noreply.github.com</email>
</author>
<published>2025-03-16T01:40:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=f16ce2ae6ce84428a7df8ed6b9745815ed6c1ca4'/>
<id>urn:sha1:f16ce2ae6ce84428a7df8ed6b9745815ed6c1ca4</id>
<content type='text'>
doc: clarify that consume can be called after BufReader::peek

tracking issue #128405
</content>
</entry>
<entry>
<title>doc: clarify that consume can be called after BufReader::peek</title>
<updated>2025-03-02T15:49:43+00:00</updated>
<author>
<name>binarycat</name>
<email>binarycat@envs.net</email>
</author>
<published>2025-03-02T15:49:43+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=57046e1470385078c866cbe2e2d5bfb0c666d0fd'/>
<id>urn:sha1:57046e1470385078c866cbe2e2d5bfb0c666d0fd</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Tweak BufReader::peek() doctest to expose bug in Buffer::read_more()</title>
<updated>2025-03-01T01:30:53+00:00</updated>
<author>
<name>Will Woods</name>
<email>w@wizard.zone</email>
</author>
<published>2025-03-01T01:30:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b1196717fcba13d8ff73ec06c3d8c5bee3b74ec9'/>
<id>urn:sha1:b1196717fcba13d8ff73ec06c3d8c5bee3b74ec9</id>
<content type='text'>
This patch makes BufReader::peek()'s doctest call read_more() to refill
the buffer before the inner reader hits EOF. This exposes a bug in
read_more() that causes an out-of-bounds slice access and segfault.
</content>
</entry>
<entry>
<title>Rollup merge of #125404 - a1phyr:fix-read_buf-uses, r=workingjubilee</title>
<updated>2024-09-28T07:35:08+00:00</updated>
<author>
<name>Matthias Krüger</name>
<email>matthias.krueger@famsik.de</email>
</author>
<published>2024-09-28T07:35:08+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6e9db86787e09e9a15a0d3b9a317fb2d0fc33de9'/>
<id>urn:sha1:6e9db86787e09e9a15a0d3b9a317fb2d0fc33de9</id>
<content type='text'>
Fix `read_buf` uses in `std`

Following lib-team decision here: https://github.com/rust-lang/rust/issues/78485#issuecomment-2122992314

Guard against the pathological behavior of both returning an error and performing a read.
</content>
</entry>
<entry>
<title>Pre-allocate buffers in `File::open_buffered` and `create_buffered`</title>
<updated>2024-09-24T20:33:31+00:00</updated>
<author>
<name>Josh Stone</name>
<email>jistone@redhat.com</email>
</author>
<published>2024-09-24T20:33:31+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1e9a50dde8fe417348a9e4c74787975527502ec3'/>
<id>urn:sha1:1e9a50dde8fe417348a9e4c74787975527502ec3</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix `io::BufReader` uses of `read_buf`</title>
<updated>2024-09-23T20:51:27+00:00</updated>
<author>
<name>Benoît du Garreau</name>
<email>bdgdlm@outlook.com</email>
</author>
<published>2024-05-22T09:41:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=04710e27d260b82865b3d4949e2e84b59c35ed66'/>
<id>urn:sha1:04710e27d260b82865b3d4949e2e84b59c35ed66</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Reformat using the new identifier sorting from rustfmt</title>
<updated>2024-09-22T23:11:29+00:00</updated>
<author>
<name>Michael Goulet</name>
<email>michael@errs.io</email>
</author>
<published>2024-09-22T23:05:04+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c682aa162b0d41e21cc6748f4fecfe01efb69d1f'/>
<id>urn:sha1:c682aa162b0d41e21cc6748f4fecfe01efb69d1f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #130042 - lolbinarycat:bufreaker_peek_eof, r=Amanieu</title>
<updated>2024-09-15T02:14:55+00:00</updated>
<author>
<name>Stuart Cook</name>
<email>Zalathar@users.noreply.github.com</email>
</author>
<published>2024-09-15T02:14:55+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e02e6bf0e96041960510b15979c07d5a610e108b'/>
<id>urn:sha1:e02e6bf0e96041960510b15979c07d5a610e108b</id>
<content type='text'>
properly handle EOF in BufReader::peek

previously this would cause an infinite loop due to it being unable to read `n` bytes.
</content>
</entry>
<entry>
<title>Add missing `#[allow(missing_docs)]` on hack functions in alloc</title>
<updated>2024-09-09T11:44:09+00:00</updated>
<author>
<name>Urgau</name>
<email>urgau@numericable.fr</email>
</author>
<published>2024-09-06T11:48:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=843708a32ee8e0c75a98b2b95927b348e3089b24'/>
<id>urn:sha1:843708a32ee8e0c75a98b2b95927b348e3089b24</id>
<content type='text'>
</content>
</entry>
<entry>
<title>properly handle EOF in BufReader::peek</title>
<updated>2024-09-06T20:28:22+00:00</updated>
<author>
<name>binarycat</name>
<email>binarycat@envs.net</email>
</author>
<published>2024-09-06T20:28:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=dfdbf6343ae1ea97b504b36ec1933e181ec7198e'/>
<id>urn:sha1:dfdbf6343ae1ea97b504b36ec1933e181ec7198e</id>
<content type='text'>
previously this would cause an infinite loop due to it being
unable to read `n` bytes.
</content>
</entry>
</feed>
