Peter Dillinger
5cb137a860
Work around some new clang-analyze failures ( #9515 )
...
Summary:
... seen only in internal clang-analyze runs after https://github.com/facebook/rocksdb/issues/9481
* Mostly, this works around falsely reported leaks by using
std::unique_ptr in some places where clang-analyze was getting
confused. (I didn't see any changes in C++17 that could make our Status
implementation leak memory.)
* Also fixed SetBGError returning address of a stack variable.
* Also fixed another false null deref report by adding an assert.
Also, use SKIP_LINK=1 to speed up `make analyze`
Pull Request resolved: https://github.com/facebook/rocksdb/pull/9515
Test Plan:
Was able to reproduce the reported errors locally and verify
they're fixed (except SetBGError). Otherwise, existing tests
Reviewed By: hx235
Differential Revision: D34054630
Pulled By: pdillinger
fbshipit-source-id: 38600ef3da75ddca307dff96b7a1a523c2885c2e
2022-02-07 18:24:36 -08:00
..
2020-10-07 12:34:34 -07:00
2021-09-07 11:31:59 -07:00
2021-09-07 11:31:59 -07:00
2020-11-03 12:46:36 -08:00
2022-01-07 11:25:21 -08:00
2021-01-28 17:42:16 -08:00
2021-12-10 08:13:26 -08:00
2021-09-10 10:00:26 -07:00
2021-12-16 17:15:13 -08:00
2020-06-02 15:05:07 -07:00
2020-02-20 12:09:57 -08:00
2021-12-10 08:13:26 -08:00
2021-03-04 00:43:48 -08:00
2022-01-11 06:33:48 -08:00
2022-01-12 09:31:12 -08:00
2020-02-20 12:09:57 -08:00
2021-10-22 10:13:15 -07:00
2021-07-21 17:37:53 -07:00
2021-07-21 17:37:53 -07:00
2020-02-20 12:09:57 -08:00
2021-03-10 09:05:56 -08:00
2020-12-04 15:22:33 -08:00
2020-12-01 11:21:44 -08:00
2019-05-21 16:22:35 -07:00
2020-12-01 11:21:44 -08:00
2021-09-10 10:00:26 -07:00
2021-06-16 18:30:34 -07:00
2021-09-07 11:31:59 -07:00
2021-06-16 18:30:34 -07:00
2021-07-29 17:23:01 -07:00
2021-09-10 10:00:26 -07:00
2021-09-29 04:04:40 -07:00
2021-03-15 04:34:11 -07:00
2020-02-20 12:09:57 -08:00
2022-01-27 14:55:04 -08:00
2021-09-10 10:00:26 -07:00
2022-01-11 06:33:48 -08:00
2021-12-16 17:15:13 -08:00
2022-01-27 19:30:24 -08:00
2020-10-01 09:23:04 -07:00
2022-02-01 17:42:35 -08:00
2022-02-04 17:13:10 -08:00
2021-08-20 18:41:51 -07:00
2020-03-20 14:59:54 -07:00
2021-12-16 17:15:13 -08:00
2021-10-18 23:32:01 -07:00
2021-10-18 23:32:01 -07:00
2020-06-03 15:55:03 -07:00
2021-02-19 13:47:25 -08:00
2021-09-07 11:31:59 -07:00
2021-01-25 22:09:11 -08:00
2021-12-16 17:15:13 -08:00
2021-12-16 17:15:13 -08:00
2020-04-20 13:24:25 -07:00
2021-09-07 11:31:59 -07:00
2020-04-21 13:16:31 -07:00
2019-05-21 16:22:35 -07:00
2020-02-20 12:09:57 -08:00
2021-05-12 12:36:43 -07:00
2021-10-18 23:32:01 -07:00
2021-12-01 06:57:02 -08:00
2022-02-01 14:04:12 -08:00
2022-02-01 14:04:12 -08:00
2021-03-15 04:34:11 -07:00
2021-03-15 04:34:11 -07:00
2021-02-26 08:50:42 -08:00
2021-02-26 08:50:42 -08:00
2021-02-26 08:50:42 -08:00
2021-11-18 09:42:20 -08:00
2021-08-20 18:41:51 -07:00
2021-09-10 10:00:26 -07:00
2022-02-04 17:13:10 -08:00
2020-02-20 12:09:57 -08:00
2022-01-27 16:58:22 -08:00
2022-02-07 18:24:36 -08:00
2020-02-20 12:09:57 -08:00
2021-03-15 04:34:11 -07:00
2021-09-01 14:28:58 -07:00
2021-10-18 23:32:01 -07:00
2021-03-25 22:08:58 -07:00
2021-01-04 10:46:24 -08:00
2021-05-19 16:51:13 -07:00
2020-07-15 09:23:23 -07:00
2021-09-07 11:31:59 -07:00
2020-02-20 12:09:57 -08:00
2021-11-16 18:26:12 -08:00
2020-06-13 13:25:20 -07:00
2017-07-15 16:11:23 -07:00
2020-02-20 12:09:57 -08:00
2021-11-03 12:21:27 -07:00
2021-03-15 04:34:11 -07:00
2021-03-10 11:15:46 -08:00
2021-10-06 07:48:31 -07:00
2020-04-01 16:40:18 -07:00
2021-09-10 10:00:26 -07:00
2021-08-20 18:41:51 -07:00
2021-08-20 18:41:51 -07:00
2021-09-10 10:00:26 -07:00