Skip to content

Commit

Permalink
fix(net): require at least 1 byte in ClientMumbleMessage
Browse files Browse the repository at this point in the history
Co-Authored-By: tens0rfl0w <[email protected]>
Co-Authored-By: FabianTerhorst <[email protected]>
  • Loading branch information
3 people committed Feb 14, 2025
1 parent a697425 commit 2974200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/components/net-packet/include/MumbleMessage.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#pragma once
#pragma once

#include "SerializableComponent.h"
#include "SerializableProperty.h"
Expand All @@ -15,7 +15,7 @@ class ClientMumbleMessage : public SerializableComponent
public:
// voip-server-mumble/src/messages.h:messageType_t
SerializableProperty<uint16_t, void, true, true> type;
SerializableProperty<Span<uint8_t>, storage_type::ConstrainedBigBytesArray<0, 8192>, true, true> data;
SerializableProperty<Span<uint8_t>, storage_type::ConstrainedBigBytesArray<1, 8192>, true, true> data;

template<typename T>
SerializableResult Process(T& stream)
Expand Down

0 comments on commit 2974200

Please sign in to comment.