diff options
author | 2014-12-31 14:18:52 +0100 | |
---|---|---|
committer | 2014-12-31 14:18:52 +0100 | |
commit | a5d088839efa2d193d4191f23b4f4fff4ff234a7 (patch) | |
tree | fb83184fc1760a6f214d60c2dddd7e92bdefe571 | |
parent | f563f3bbf2be759d612fe4f8c982faa35f2351c5 (diff) |
chdman: bail out in chd_file::hunk_info() on unknown compression type (nw)
-rw-r--r-- | src/lib/util/chd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/util/chd.c b/src/lib/util/chd.c index 58965fc445e..10f85fce4f2 100644 --- a/src/lib/util/chd.c +++ b/src/lib/util/chd.c @@ -452,6 +452,9 @@ chd_error chd_file::hunk_info(UINT32 hunknum, chd_codec_type &compressor, UINT32 compressor = CHD_CODEC_PARENT; compbytes = 0; break; + + default: + return CHDERR_UNKNOWN_COMPRESSION; } break; } |