|
@@ -5045,7 +5045,7 @@ done_prefixes:
|
|
|
/* Decode and fetch the destination operand: register or memory. */
|
|
|
rc = decode_operand(ctxt, &ctxt->dst, (ctxt->d >> DstShift) & OpMask);
|
|
|
|
|
|
- if (ctxt->rip_relative)
|
|
|
+ if (ctxt->rip_relative && likely(ctxt->memopp))
|
|
|
ctxt->memopp->addr.mem.ea = address_mask(ctxt,
|
|
|
ctxt->memopp->addr.mem.ea + ctxt->_eip);
|
|
|
|