mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
AK/ByteBuffer+Everywhere: Handle errors in ByteBuffer::slice()
This commit is contained in:
parent
c0486f93d4
commit
c10d48b72c
Notes:
sideshowbarker
2024-07-17 10:17:34 +09:00
Author: https://github.com/mjz19910
Commit: c10d48b72c
Pull-request: https://github.com/SerenityOS/serenity/pull/14268
Reviewed-by: https://github.com/linusg
12 changed files with 45 additions and 34 deletions
|
@ -92,7 +92,8 @@ void TLSv12::consume(ReadonlyBytes record)
|
|||
}
|
||||
|
||||
if (index) {
|
||||
m_context.message_buffer = m_context.message_buffer.slice(index, m_context.message_buffer.size() - index);
|
||||
// FIXME: Propagate errors.
|
||||
m_context.message_buffer = MUST(m_context.message_buffer.slice(index, m_context.message_buffer.size() - index));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue