Lee Jones
9e47d3f94d
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-13 00:24:31 +02:00
..
2024-12-05 11:21:28 +00:00
2024-10-01 11:50:22 +03:00
2024-11-08 16:19:12 +01:00
2024-09-04 13:13:00 +02:00
2025-01-10 13:09:21 +02:00
2024-12-16 01:21:42 +02:00
2024-12-16 01:21:42 +02:00
2024-05-07 22:02:57 +03:00
2024-12-16 01:21:42 +02:00
2025-01-10 13:09:21 +02:00
2024-12-16 01:21:42 +02:00
2025-01-10 13:09:21 +02:00
2024-06-09 04:39:43 +03:00
2025-01-10 13:09:21 +02:00
2024-08-06 00:36:59 +03:00
2024-08-06 00:36:59 +03:00
2025-01-10 13:09:21 +02:00
2024-08-06 00:36:59 +03:00
2024-05-17 11:42:42 +02:00
2025-01-10 13:09:21 +02:00
2024-11-09 11:24:17 +00:00
2025-01-10 13:09:21 +02:00
2025-01-10 13:09:21 +02:00
2024-09-12 11:02:54 +02:00
2024-11-09 11:24:17 +00:00
2024-12-16 01:21:42 +02:00
2024-12-16 01:21:42 +02:00
2024-12-16 01:21:42 +02:00
2024-12-05 11:21:28 +00:00
2024-12-16 01:21:42 +02:00
2024-10-09 03:14:26 +03:00
2024-12-16 01:21:42 +02:00
2024-08-19 05:32:07 +02:00
2024-10-01 11:50:22 +03:00
2024-08-19 05:32:01 +02:00
2024-12-16 01:21:42 +02:00
2025-02-13 00:24:31 +02:00
2025-01-10 13:09:21 +02:00
2024-12-05 10:59:34 +01:00
2025-01-10 13:09:21 +02:00
2025-01-10 13:09:21 +02:00
2025-01-10 13:09:21 +02:00
2024-12-05 11:21:28 +00:00
2025-01-10 13:09:21 +02:00
2024-06-22 18:08:23 +03:00
2024-11-08 16:19:07 +01:00
2024-12-05 11:21:28 +00:00
2024-10-09 03:14:26 +03:00
2024-12-19 20:56:40 +01:00
2024-11-08 16:19:20 +01:00
2025-01-10 13:09:21 +02:00
2024-09-12 11:02:51 +02:00
2024-05-07 22:02:57 +03:00
2024-12-16 01:21:42 +02:00
2025-02-13 00:22:21 +02:00
2024-02-23 08:12:44 +01:00
2025-01-10 13:09:21 +02:00
2024-11-08 16:19:10 +01:00
2024-07-05 09:00:20 +02:00
2024-10-01 11:50:22 +03:00
2024-08-06 00:36:59 +03:00
2024-08-19 05:32:09 +02:00
2024-11-08 16:19:04 +01:00
2025-01-10 13:09:21 +02:00
2025-01-10 13:09:21 +02:00
2024-11-09 11:24:17 +00:00
2025-01-10 13:09:21 +02:00
2024-12-05 10:59:42 +01:00
2024-05-07 22:02:57 +03:00
2025-01-10 13:09:21 +02:00
2024-11-08 16:19:03 +01:00
2025-01-10 13:09:21 +02:00
2024-09-04 13:13:00 +02:00
2024-12-16 01:21:42 +02:00
2024-05-17 11:42:40 +02:00
2025-01-10 13:09:21 +02:00
2024-10-09 03:14:26 +03:00
2025-01-10 13:09:21 +02:00
2024-12-05 11:21:28 +00:00
2024-05-03 06:16:46 +00:00
2025-01-10 13:09:21 +02:00
2024-06-17 09:34:03 +00:00
2024-01-25 14:33:36 -08:00
2024-11-08 16:19:06 +01:00