From: Shamus Hammons Date: Wed, 7 Oct 2015 16:53:50 +0000 (-0500) Subject: Fix NULL pointer dereference bug. X-Git-Tag: v2.1.0~199 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=commitdiff_plain;h=850b5921f82266f0a416dc24ab44731f9692d4d9 Fix NULL pointer dereference bug. --- diff --git a/riscasm.c b/riscasm.c index 23faaee..78bae9c 100644 --- a/riscasm.c +++ b/riscasm.c @@ -328,7 +328,7 @@ int GenerateRISCCode(int state) { sy = lookup(string[tok[1]], LABEL, 0); - if (sy->sattre & EQUATEDREG) + if (sy && (sy->sattre & EQUATEDREG)) return error("equated register in 1st operand of MOVEI instruction"); } diff --git a/version.h b/version.h index 238c0ef..43e2007 100644 --- a/version.h +++ b/version.h @@ -13,6 +13,6 @@ #define MAJOR 1 // Major version number #define MINOR 3 // Minor version number -#define PATCH 10 // Patch release number +#define PATCH 11 // Patch release number #endif // __VERSION_H__