Fix for bug #77. Thanks for ggn for reporting. :-)
authorShamus Hammons <jlhamm@acm.org>
Tue, 13 Sep 2016 01:58:37 +0000 (20:58 -0500)
committerShamus Hammons <jlhamm@acm.org>
Tue, 13 Sep 2016 01:58:37 +0000 (20:58 -0500)
direct.c
version.h

index c0b5be5cd83ed46279b9d0f7998a28432efe81bc..70f4469602278ad708811706181f5a37146a2c3f 100644 (file)
--- 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);
index 098b1e7c86f755e6b3dbcd4c552d3ad52a79caba..8c19728dcbd2a90a50046ccd665f11af8992de7e 100644 (file)
--- 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__