Files
xserver/os
Tomasz Śniatowski 6883ae43eb os: Fix strtok/free crash in ComputeLocalClient
Don't reuse cmd for strtok output to ensure the proper pointer is
freed afterwards.

The code incorrectly assumed the pointer returned by strtok(cmd, ":")
would always point to cmd. However, strtok(str, sep) != str if str
begins with sep. This caused an invalid-free crash when running
a program under X with a name beginning with a colon.

Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=104123
Signed-off-by: Tomasz Śniatowski <kailoran@gmail.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
2017-12-13 09:54:14 -05:00
..
2017-10-30 13:45:20 -04:00
2015-11-30 11:51:22 -05:00
2017-02-23 09:20:48 +10:00
2017-10-30 13:45:20 -04:00
2017-11-06 17:22:46 -05:00
2017-04-26 16:07:19 -04:00
2017-08-14 13:34:11 -07:00
2016-07-21 15:04:47 -04:00
2012-03-21 13:54:42 -07:00
2012-03-21 13:54:42 -07:00
2017-08-30 15:53:04 -04:00
2017-11-06 17:22:46 -05:00
2013-10-31 16:58:12 -07:00