summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
authorTom Englund <tomenglund26@gmail.com>2025-05-07 18:15:27 +0200
committerGitHub <noreply@github.com>2025-05-07 18:15:27 +0200
commit0dfcba9825f1c9fb24987e9b255e8b43be4aae6d (patch)
tree223c879a0c6f06f00a91dcd32ccbf9c3b1c91e54 /src/managers/KeybindManager.cpp
parente5df8cdc6227e35fa225acd15cdcc75abe3347cb (diff)
DMABuffer: reserve vector and avoid UB (#10317)
actually reserve the vector instead of initializing it with the m_attrs.fd.size() adding 4 invalid fd entries, and later emplace_back the valid ones. sync_merge_data name is defined as char name[32] a fixed size array, and c++ technically doesnt allow assigning string literals directly to array fields in aggregate initializers, it may compile but is technically undefined behaviour or ill formed. zero initalise it and use std::ranges::copy_n instead.
Diffstat (limited to 'src/managers/KeybindManager.cpp')
0 files changed, 0 insertions, 0 deletions