| author | |
| committer | |
| log | d711f459ae1b73f7a1e6e6b596c1aff3066ecc29 |
| tree | bc90be355b42785df88810474a9289e06b0615ee |
| parent | b3e495a38a5e334f5e30e255592f810e0017919c |
An abstraction for giving bytes to the read buffer didn't check for an
out-of-space condition.1 files changed, 1 insertions(+), 0 deletions(-)
lib/std/crypto/tls/Client.zig+1| ... | ... | @@ -1207,6 +1207,7 @@ const VecPut = struct { |
| 1207 | 1207 | /// Returns the amount actually put which is always equal to bytes.len |
| 1208 | 1208 | /// unless the vectors ran out of space. |
| 1209 | 1209 | fn put(vp: *VecPut, bytes: []const u8) usize { |
| 1210 | if (vp.idx >= vp.iovecs.len) return 0; | |
| 1210 | 1211 | var bytes_i: usize = 0; |
| 1211 | 1212 | while (true) { |
| 1212 | 1213 | const v = vp.iovecs[vp.idx]; |