From: Shamus Hammons Date: Tue, 13 Sep 2016 01:58:37 +0000 (-0500) Subject: Fix for bug #77. Thanks for ggn for reporting. :-) X-Git-Tag: v2.1.0~157 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=commitdiff_plain;h=3a5a7740b7a06a69852c8f9a7925ed0d00a73f8c Fix for bug #77. Thanks for ggn for reporting. :-) --- diff --git a/direct.c b/direct.c index c0b5be5..70f4469 100644 --- a/direct.c +++ b/direct.c @@ -831,9 +831,14 @@ int d_ds(WORD siz) if (abs_expr(&eval) != OK) return 0; + // Check to see if the value being passed in is negative (who the hell does + // that?--nobody does; it's the code gremlins, or rum, that does it) + if (eval < 0) + return error("negative sizes not allowed"); + // In non-TDB section (BSS, ABS and M6502) just advance the location // counter appropriately. In TDB sections, deposit (possibly large) chunks - //of zeroed memory.... + // of zeroed memory.... if (scattr & SBSS) { listvalue(eval); diff --git a/version.h b/version.h index 098b1e7..8c19728 100644 --- a/version.h +++ b/version.h @@ -13,6 +13,6 @@ #define MAJOR 1 // Major version number #define MINOR 4 // Minor version number -#define PATCH 14 // Patch release number +#define PATCH 15 // Patch release number #endif // __VERSION_H__