Raphael Isemann
1784388567
Fix use after free in DiskFilesOrDirectories
...
Summary:
We copy the local variable `Resolved` into `Storage` to keep it around. However, we then still let the `SearchDir` ref point to `Resolved` which then is used to access the already freed memory later on. With this patch we point to `Storage` which doesn't get deleted after the current scope exits.
Discovered by memory sanitizer in the CompletionTest.DirCompletionUsername test.
Reviewers: zturner
Subscribers: lldb-commits
Differential Revision: https://reviews.llvm.org/D42346
llvm-svn: 323082
2018-01-22 09:17:16 +00:00
..
2017-02-09 01:17:34 +00:00
2018-01-22 09:17:16 +00:00
2016-12-16 04:27:00 +00:00
2016-09-06 20:57:50 +00:00
2017-05-12 04:51:55 +00:00
2017-05-12 04:51:55 +00:00
2017-09-15 00:52:35 +00:00
2017-09-14 20:22:49 +00:00
2017-09-14 20:22:49 +00:00
2016-09-06 20:57:50 +00:00
2017-05-12 04:51:55 +00:00
2016-09-06 20:57:50 +00:00
2017-05-12 04:51:55 +00:00
2016-09-06 20:57:50 +00:00
2017-10-31 10:56:03 +00:00
2017-11-13 16:16:33 +00:00
2017-07-19 23:25:42 +00:00
2017-05-12 04:51:55 +00:00
2017-06-29 14:32:17 +00:00
2017-11-13 16:16:33 +00:00
2016-09-06 20:57:50 +00:00
2016-09-06 20:57:50 +00:00
2016-12-09 01:08:29 +00:00
2017-05-12 04:51:55 +00:00
2016-09-06 20:57:50 +00:00
2016-09-06 20:57:50 +00:00
2017-06-29 14:32:17 +00:00
2016-09-06 20:57:50 +00:00
2017-05-12 04:51:55 +00:00
2016-09-06 20:57:50 +00:00
2016-12-09 05:46:41 +00:00
2017-10-31 10:56:03 +00:00
2016-09-06 20:57:50 +00:00
2017-05-12 04:51:55 +00:00
2016-09-06 20:57:50 +00:00
2018-01-10 11:57:31 +00:00
2016-09-06 20:57:50 +00:00
2016-11-16 21:15:24 +00:00
2016-09-06 20:57:50 +00:00
2017-06-06 14:06:17 +00:00
2016-09-06 20:57:50 +00:00
2017-05-12 04:51:55 +00:00
2016-09-06 20:57:50 +00:00
2017-11-17 01:19:59 +00:00
2016-09-06 20:57:50 +00:00
2016-12-09 05:46:41 +00:00
2016-09-06 20:57:50 +00:00
2017-11-27 17:06:42 +00:00
2017-11-13 16:16:33 +00:00
2017-09-19 18:07:33 +00:00
2016-09-06 20:57:50 +00:00
2017-05-12 04:51:55 +00:00
2016-09-06 20:57:50 +00:00
2016-09-06 20:57:50 +00:00
2016-09-06 20:57:50 +00:00
2017-05-12 04:51:55 +00:00
2016-09-06 20:57:50 +00:00
2017-05-12 04:51:55 +00:00
2016-09-06 20:57:50 +00:00