diff options
author | Pierre Willenbrock <pierre@pirsoft.de> | 2009-07-21 17:21:28 +0200 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2009-07-22 12:13:04 +1000 |
commit | 4dc91b3e54503a1be555bae5b18f3e52f58be307 (patch) | |
tree | 1f706244a9959137a6f69e9b76ed7b9162b1c570 /dix/cursor.c | |
parent | 9a1bfa5664a80f03cedeb89b9f8a86115a08e7af (diff) |
Check if new space was actually allocated before freeing.
There will be no new space allocated, if mode != PropModeReplace and
len == 0, or if mode is not one of the handled modes.
This fixes freeing data that is still in use, leading to double frees and
other memory corruption.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'dix/cursor.c')
0 files changed, 0 insertions, 0 deletions