From 160a401d16e3962b10f3105e00992936a8188424 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 8 Jan 2018 23:14:28 +0000 Subject: [PATCH] Fix a couple more crashes with incorrect KDMs (#1000). --- src/lib/dcp_content.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/lib/dcp_content.cc b/src/lib/dcp_content.cc index 43d6911f5..a6424874a 100644 --- a/src/lib/dcp_content.cc +++ b/src/lib/dcp_content.cc @@ -456,6 +456,9 @@ DCPContent::can_reference (function (shared_ptr& why_not) const } catch (dcp::DCPReadError) { /* We couldn't read the DCP, so it's probably missing */ return false; + } catch (dcp::KDMDecryptionError) { + /* We have an incorrect KDM */ + return false; } BOOST_FOREACH (shared_ptr i, decoder->reels()) { @@ -518,6 +524,9 @@ DCPContent::can_reference_subtitle (list& why_not) const } catch (dcp::DCPReadError) { /* We couldn't read the DCP, so it's probably missing */ return false; + } catch (dcp::KDMDecryptionError) { + /* We have an incorrect KDM */ + return false; } BOOST_FOREACH (shared_ptr i, decoder->reels()) { -- 2.30.2