mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
Everywhere: Use OOM-safe ByteBuffer APIs where possible
If we can easily communicate failure, let's avoid asserting and report failure instead.
This commit is contained in:
parent
6606993432
commit
3a9f00c59b
22 changed files with 135 additions and 67 deletions
|
@ -95,7 +95,10 @@ TEST_CASE(test_TLS_hello_handshake)
|
|||
loop.quit(1);
|
||||
} else {
|
||||
// print_buffer(data.value(), 16);
|
||||
contents.append(data.value().data(), data.value().size());
|
||||
if (!contents.try_append(data.value().data(), data.value().size())) {
|
||||
FAIL("Allocation failure");
|
||||
loop.quit(1);
|
||||
}
|
||||
}
|
||||
};
|
||||
tls->on_tls_finished = [&] {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue