From 26ec3ebc4c0f4aefce80ecd495f31a45eca7f608 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 13 Aug 2012 23:46:52 -0500 Subject: [PATCH] read_security_data() fix --- src/security.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/security.c b/src/security.c index 9707bd31..c6bbf7cb 100644 --- a/src/security.c +++ b/src/security.c @@ -127,6 +127,8 @@ int read_security_data(const u8 metadata_resource[], u64 metadata_resource_len, "(current total length = %"PRIu64", security " "descriptor size = %"PRIu64")", total_len, sd->sizes[i]); + ret = WIMLIB_ERR_INVALID_SECURITY_DATA; + goto out_free_sd; } total_len += sd->sizes[i]; if (total_len > (u64)sd->total_length) { -- 2.43.0