X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fexport_image.c;h=f901ff1973a74038878ff2c3560e8f25efbcfcb6;hp=56725e668bb77b113a4bf67fdd6b3c49476e051a;hb=668c363a59c521f48eecbc4dd549c07a3e36179e;hpb=320e646b45b894a25c4239d5a71d3bd9c2ec793b diff --git a/src/export_image.c b/src/export_image.c index 56725e66..f901ff19 100644 --- a/src/export_image.c +++ b/src/export_image.c @@ -113,6 +113,11 @@ wimlib_export_image(WIMStruct *src_wim, u32 orig_dest_image_count; /* Check for sane parameters. */ + if (export_flags & ~(WIMLIB_EXPORT_FLAG_BOOT | + WIMLIB_EXPORT_FLAG_NO_NAMES | + WIMLIB_EXPORT_FLAG_NO_DESCRIPTIONS)) + return WIMLIB_ERR_INVALID_PARAM; + if (src_wim == NULL || dest_wim == NULL) return WIMLIB_ERR_INVALID_PARAM;