Pavel Labath
0157a74bec
[lldb] Fix an asan error from 27df2d9f556c
...
This error is caused by a combination of a couple of factors:
- the test accidentally creating a list with a single (empty) FileSpec
instead of an empty list
- lldb overzeleously converting empty strings into nullptrs
- asan overzeleously validating symlink(2) arguments (the real symlink
call would just fail with EFAULT)
I fix this by using FileSpec::GetPath instead of GetCString. This avoids
the nullptr and also avoids inserting the path into the global string
pool.
I also enhance the test case to test both empty paths and empty lists.
2020-01-22 10:14:47 +01:00
..
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2020-01-22 10:14:47 +01:00
2019-12-13 12:23:04 +01:00
2019-09-04 07:46:25 +00:00
2019-12-13 12:23:04 +01:00
2020-01-21 13:35:55 -08:00
2020-01-01 14:22:49 -08:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-26 18:49:34 +03:00
2019-12-13 12:23:04 +01:00
2019-12-05 15:50:03 -08:00
2020-01-09 16:05:38 -08:00
2019-12-13 12:34:49 +01:00
2019-12-09 19:08:59 +05:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-09 09:59:40 +01:00
2019-12-03 10:57:42 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:34:49 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-10 18:48:40 -08:00
2019-08-02 08:06:22 +00:00
2019-09-27 08:49:41 +00:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-05 15:50:03 -08:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:34:49 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-09-04 07:46:25 +00:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-03 11:53:28 +01:00
2019-12-13 12:23:04 +01:00
2019-02-06 00:52:04 +00:00
2019-12-13 12:34:49 +01:00
2019-10-03 22:50:18 +00:00
2019-12-13 12:23:04 +01:00
2020-01-16 14:48:51 -08:00
2019-09-04 07:46:25 +00:00
2019-09-04 07:46:25 +00:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:34:49 +01:00
2019-12-13 12:34:49 +01:00
2019-09-04 07:46:25 +00:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-09-04 07:46:25 +00:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:23:04 +01:00
2019-12-13 12:34:49 +01:00
2019-12-13 12:23:04 +01:00