From 50132d4ff7d76557fe17ee22118bf159dcb63996 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sun, 11 Oct 2015 09:44:15 +0200 Subject: [PATCH] Added forgotten emergency exit with faulty MD5 tags. Coverity CID 12596. --- libisofs/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libisofs/util.c b/libisofs/util.c index 377f974..1034099 100644 --- a/libisofs/util.c +++ b/libisofs/util.c @@ -1,7 +1,7 @@ /* * Copyright (c) 2007 Vreixo Formoso * Copyright (c) 2007 Mario Danic - * Copyright (c) 2009 - 2012 Thomas Schmitt + * Copyright (c) 2009 - 2015 Thomas Schmitt * * This file is part of the libisofs project; you can redistribute it and/or * modify it under the terms of the GNU General Public License version 2 @@ -2238,6 +2238,7 @@ unexpected_type:; goto ex; } else if (range_start != ctx_start_lba) { ret = ISO_MD5_TAG_MISPLACED; + goto ex; } ret = iso_md5_clone(ctx, &cloned_ctx); if (ret < 0)