Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pyrdp/parser/rdp/virtual_channel/dynamic_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ def doParse(self, data: bytes) -> PDU:
channelName = ""
char = stream.read(1).decode()
while char != "\x00":
if len(char) == 0:
raise ValueError("Channel name is not null-terminated")
channelName += char
char = stream.read(1).decode()
return CreateRequestPDU(cbid, sp, channelId, channelName)
Expand Down
Loading