aboutsummaryrefslogtreecommitdiff
path: root/?id=513536a47aa495c8f66c0f59b11756a4b72003e1
diff options
context:
space:
mode:
authorAndy Gozas <andy@gozas.me>2022-08-28 22:01:47 +0000
committerAndy Gozas <andy@gozas.me>2022-08-28 22:01:47 +0000
commit513536a47aa495c8f66c0f59b11756a4b72003e1 (patch)
treec3353c8ac789b7dab2eb463253af05d6be3199c8 /?id=513536a47aa495c8f66c0f59b11756a4b72003e1
parentebf6f66fe1b9df9209e1e007622c628520f60f05 (diff)
Fix buffer overflow in input handling
kpress function in x.c previously relied on the wrong understanding of XmbLookupString behavior. When the composed string is longer than the available buffer, the buffer is not initialized and the actual length of the data available to read is returned, not the amount of data written. When that amount is later used to process the contents of this buffer, not only will the random contents of the uninitialized buffer be sent directly to the terminal and whichever application is now running in it, but possibly also whatever is in the memory after that buffer, leading to undefined behavior and possible random command execution.
Diffstat (limited to '?id=513536a47aa495c8f66c0f59b11756a4b72003e1')
0 files changed, 0 insertions, 0 deletions