Update SystemZInstPrinter.c
Updating fix from commit 5b55115c425b4b08225ea7814070da793d442109
diff --git a/arch/SystemZ/SystemZInstPrinter.c b/arch/SystemZ/SystemZInstPrinter.c
index b27ae3f..bb1cce0 100644
--- a/arch/SystemZ/SystemZInstPrinter.c
+++ b/arch/SystemZ/SystemZInstPrinter.c
@@ -19,6 +19,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <limits.h>
#include <platform.h>
#include "SystemZInstPrinter.h"
@@ -295,6 +296,10 @@
if (MCOperand_isImm(MO)) {
imm = (int32_t)MCOperand_getImm(MO);
+ if (imm == INT_MIN) {
+ printf("ERROR: invalid Imm value\n");
+ return;
+ }
if (imm >= 0) {
if (imm > HEX_THRESHOLD)
SStream_concat(O, "0x%x", imm);