From 0eb9b9f3e5b63d9d89cfce03a32e127ef7e8a37b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20A=2E=20A=CC=81lvarez?= Date: Sun, 15 Nov 2020 20:15:49 +0100 Subject: [PATCH] use ".byte" when skipdata is set up with NULL mnemonic --- cs.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cs.c b/cs.c index c2bd9003a3..c6fa5f9db8 100644 --- a/cs.c +++ b/cs.c @@ -709,6 +709,8 @@ cs_err CAPSTONE_API cs_option(csh ud, cs_opt_type type, size_t value) case CS_OPT_SKIPDATA_SETUP: if (value) handle->skipdata_setup = *((cs_opt_skipdata *)value); + if (handle->skipdata_setup.mnemonic == NULL) + handle->skipdata_setup.mnemonic = SKIPDATA_MNEM; return CS_ERR_OK; case CS_OPT_MNEMONIC: