Skip to content

Commit

Permalink
hyprland/ipc: pad event argument list to given count
Browse files Browse the repository at this point in the history
Fixes crash when assuming more arguments than given will be available,
and trailing ",".
  • Loading branch information
outfoxxed committed Nov 24, 2024
1 parent 31adcaa commit 6f99933
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/wayland/hyprland/ipc/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ QVector<QByteArrayView> HyprlandIpc::parseEventArgs(QByteArrayView event, quint1
args.push_back(event);
}

while (args.length() < count) {
args.push_back(QByteArrayView());
}

return args;
}

Expand Down

0 comments on commit 6f99933

Please sign in to comment.