• Harris Hancock's avatar
    Add limit to readAllBytes()/readAllText() · 49b44f96
    Harris Hancock authored
    Reading an unbounded amount of data from a stream is a potential DoS vector. To manage this risk, readAllText() and readAllBytes() now accept a `limit` parameter. For source backwards-compatibility, this limit defaults to kj::maxValue.
    49b44f96
io-test.c++ 5.64 KB