File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1883,6 +1883,10 @@ pub trait BufRead: Read {
1883
1883
///
1884
1884
/// If successful, this function will return the total number of bytes read.
1885
1885
///
1886
+ /// This function is blocking and should be used carefully: it is possible for
1887
+ /// an attacker to continuously send bytes without ever sending the delimiter
1888
+ /// or EOF.
1889
+ ///
1886
1890
/// # Errors
1887
1891
///
1888
1892
/// This function will ignore all instances of [`ErrorKind::Interrupted`] and
@@ -1945,6 +1949,10 @@ pub trait BufRead: Read {
1945
1949
///
1946
1950
/// If this function returns `Ok(0)`, the stream has reached EOF.
1947
1951
///
1952
+ /// This function is blocking and should be used carefully: it is possible for
1953
+ /// an attacker to continuously send bytes without ever sending a newline
1954
+ /// or EOF.
1955
+ ///
1948
1956
/// # Errors
1949
1957
///
1950
1958
/// This function has the same error semantics as [`read_until`] and will
You can’t perform that action at this time.
0 commit comments