Skip to content

Commit 6f99933

Browse files
committed
hyprland/ipc: pad event argument list to given count
Fixes crash when assuming more arguments than given will be available, and trailing ",".
1 parent 31adcaa commit 6f99933

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/wayland/hyprland/ipc/connection.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,10 @@ QVector<QByteArrayView> HyprlandIpc::parseEventArgs(QByteArrayView event, quint1
173173
args.push_back(event);
174174
}
175175

176+
while (args.length() < count) {
177+
args.push_back(QByteArrayView());
178+
}
179+
176180
return args;
177181
}
178182

0 commit comments

Comments
 (0)