diff options
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 'README.md%2525252525252525252525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525252525252525252525253d5728d045ebfc20cd01408c47e89354bc491308a3%25252525252525252525252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525252525252525252525253d3c0a2e8d3082a26f5a35cd0d5438a61170afbbe0%252525252525252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525252525252525253d3c0a2e8d3082a26f5a35cd0d5438a61170afbbe0%252525252525252525252525252525252525252525252525252525252525252525253fid2%252525252525252525252525252525252525252525252525252525252525252525253d7bdb3c5282f26ad10825e8087139d26a7fb00fb2%252525252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525252525253d8e1985b89836d55f86f1e4986f727e51b5b77480%2525252525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525252525253d8e1985b89836d55f86f1e4986f727e51b5b77480&id2%2525252525252525252525252525252525252525252525252525252525253d36d225d71d448bfe307075580f0d8ef81eeb5a87%25252525252525252525252525252525252525252525252525252525253fid%25252525252525252525252525252525252525252525252525252525253d8e1985b89836d55f86f1e4986f727e51b5b77480%252525252525252525252525252525252525252525252525252525253fid%252525252525252525252525252525252525252525252525252525253df800184d3d13e5ad31f69787bed724df64ff4481%2525252525252525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525252525252525253debf6f66fe1b9df9209e1e007622c628520f60f05%2525252525252525252525252525252525252525252525253fid2%2525252525252525252525252525252525252525252525253d8e1985b89836d55f86f1e4986f727e51b5b77480%2525252525252525252525252525252525252525253fid%2525252525252525252525252525252525252525253d8e1985b89836d55f86f1e4986f727e51b5b77480%252525252525252525252525252525252525253fshowmsg%252525252525252525252525252525252525253d1%25252525252525252525252525253fid%25252525252525252525252525253d8e1985b89836d55f86f1e4986f727e51b5b77480%252525252525252525252525253fid%252525252525252525252525253d8e1985b89836d55f86f1e4986f727e51b5b77480%2525252525252525252525253fid%2525252525252525252525253d36d225d71d448bfe307075580f0d8ef81eeb5a87%25252525252525252525253fid%25252525252525252525253d36d225d71d448bfe307075580f0d8ef81eeb5a87%252525252525252525253fid%252525252525252525253d36d225d71d448bfe307075580f0d8ef81eeb5a87%2525252525252525253fid%2525252525252525253d36d225d71d448bfe307075580f0d8ef81eeb5a87%25252525252525253fid%25252525252525253d4c57f1f61861c28e1cca9a9ae5aa16b8fbf9da1e%252525252525253fid%252525252525253d401b6f73f0ebfa3c834c649820048d2d1d678284%2525252525253fid%2525252525253d401b6f73f0ebfa3c834c649820048d2d1d678284%25252525253fid%25252525253d401b6f73f0ebfa3c834c649820048d2d1d678284%252525253fid%252525253d401b6f73f0ebfa3c834c649820048d2d1d678284%2525253fid%2525253d2e9f87e5d801e13ac9e5779b5d4db181d3633808%25253fid%25253d2e9f87e5d801e13ac9e5779b5d4db181d3633808%253fid%253d2e9f87e5d801e13ac9e5779b5d4db181d3633808%3fid%3d159f1666a881cdd4ed27a5506ca171c38fcc3cbf?id=513536a47aa495c8f66c0f59b11756a4b72003e1')
0 files changed, 0 insertions, 0 deletions