mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibCrypto: This method wrote to a const pointer.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 04:33:08 +09:00
Author: https://github.com/asynts Commit: https://github.com/SerenityOS/serenity/commit/68cf22d580a Pull-request: https://github.com/SerenityOS/serenity/pull/2903
@@ -59,8 +59,9 @@ public:
|
||||
}
|
||||
|
||||
size_t export_data(AK::ByteBuffer& data) const;
|
||||
size_t export_data(const u8* ptr, size_t length) const
|
||||
size_t export_data(u8* ptr, size_t length) const
|
||||
{
|
||||
// Note: ByteBuffer::wrap() does a const_cast!
|
||||
auto buffer = ByteBuffer::wrap(ptr, length);
|
||||
return export_data(buffer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user