Lee Jones
b1020cb6f2
ANDROID: android-verity: Prevent double-freeing metadata
...
If extract_metadata() fails, it will free metadata in its own error
path, so it is safe to simply return the provided error value without
worrying about resource handling/releasing.
Moreover, if we simply return in extract_metadata()'s error path, we
can assume the thread of execution will only make it down into the
free_metadata: tag area sometime after extract_metadata()'s success,
in which case metadata will need to be freed without question.
Bug: 234030265
Signed-off-by: Lee Jones <lee.jones@linaro.org >
Change-Id: I1bf42ff9ecef3eea26543526c6955d7823d45c43
2025-02-12 16:56:03 +02:00
..
2023-12-20 15:38:02 +01:00
2024-09-04 13:12:59 +02:00
2025-02-12 16:56:03 +02:00
2020-03-25 08:06:07 +01:00
2022-05-09 15:06:16 +00:00
2021-03-11 14:27:00 +01:00
2023-01-18 11:30:42 +01:00
2023-08-11 11:45:35 +02:00
2024-11-17 14:58:06 +01:00
2024-06-01 07:55:42 +00:00
2024-09-06 02:00:44 +03:00
2020-07-25 21:08:57 +05:30
2023-12-08 08:43:24 +01:00
2022-07-02 16:27:31 +02:00
2023-05-17 11:13:21 +02:00
2024-09-06 02:00:44 +03:00
2023-08-11 11:45:01 +02:00
2024-10-08 21:28:41 +03:00
2019-08-29 08:28:55 +02:00
2020-05-30 02:04:30 +08:00
2019-07-03 13:14:45 +02:00
2020-06-25 15:32:49 +02:00
2019-01-26 09:32:42 +01:00
2024-04-13 12:50:06 +02:00
2021-05-22 10:59:23 +02:00
2023-08-11 11:45:01 +02:00
2021-06-03 08:38:04 +02:00
2023-04-05 11:15:38 +02:00
2023-04-05 11:15:38 +02:00
2024-09-06 02:00:44 +03:00
2019-09-16 08:22:12 +02:00
2023-01-18 11:30:42 +01:00
2019-01-31 08:14:38 +01:00
2023-04-18 07:55:08 +00:00
2024-11-17 14:58:06 +01:00
2021-05-25 20:31:00 +00:00
2018-12-05 09:48:12 -08:00
2024-09-06 02:00:44 +03:00
2021-05-19 21:07:43 +08:00
2024-09-06 02:00:44 +03:00
2024-09-06 02:00:44 +03:00
2022-08-25 11:15:30 +02:00
2020-06-25 15:32:58 +02:00
2020-06-25 15:32:58 +02:00
2020-07-09 09:37:12 +02:00
2019-12-17 20:34:53 +01:00
2024-09-09 16:06:26 +00:00
2021-02-26 10:41:51 +08:00
2021-01-12 01:04:58 +00:00
2024-09-06 02:00:44 +03:00
2020-12-30 11:26:16 +01:00
2019-12-17 20:34:55 +01:00
2019-12-17 20:34:55 +01:00
2024-09-04 13:13:02 +02:00
2019-12-17 20:34:55 +01:00
2023-08-11 11:45:22 +02:00
2023-08-11 11:45:22 +02:00
2023-09-23 10:48:17 +02:00
2019-02-06 17:30:16 +01:00
2024-08-19 05:32:10 +02:00
2023-08-11 11:45:25 +02:00