diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-01-14 00:22:13 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2014-01-14 00:22:13 +0100 |
commit | 79e8f53e89d83805784bd2a8832cddc4bc0de608 (patch) | |
tree | 18637eb3e37565c0940857b5923c6727bdd762b5 /sys/src/libmach | |
parent | 265b392e0111e5927a205522d2e257aff495db01 (diff) |
devdraw: fix memory corruption reading draw ctl file
when user does read of exactly 12*12 bytes on draw
ctl file, the snprint() adds one more \0 byte writing
beyond the user buffer and corrupting memory.
fix this by not snprint()ing the final space and add
it manually.
Diffstat (limited to 'sys/src/libmach')
0 files changed, 0 insertions, 0 deletions