* nlmheader.y: Null terminate var_hdr->threadName.
authorJ.T. Conklin <jtc@acorntoolworks.com>
Mon, 11 Jul 1994 23:06:35 +0000 (23:06 +0000)
committerJ.T. Conklin <jtc@acorntoolworks.com>
Mon, 11 Jul 1994 23:06:35 +0000 (23:06 +0000)
binutils/ChangeLog
binutils/nlmheader.y

index ef575a589d66156ae851a56078d1a8d8298a6421..9dddcba35e16da8e5e53ff47689f56f2e85fbd9b 100644 (file)
@@ -1,3 +1,7 @@
+Mon Jul 11 15:59:03 1994  J.T. Conklin  (jtc@phishhead.cygnus.com)
+
+       * nlmheader.y: Null terminate var_hdr->threadName.
+
 Fri Jul  8 17:33:22 1994  Ken Raeburn  (raeburn@cujo.cygnus.com)
 
        * Makefile.in (syslex.o, sysinfo.o): Permit C source files to be
index caa8f439ced8927587936e5a751590de74116148..248bec3a503b4f8801e76b5ef385c55c6de00d78 100644 (file)
@@ -29,7 +29,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <ansidecl.h>
 #include <stdio.h>
 #include <ctype.h>
-#include <bfd.h>
+#include "bfd.h"
 #include "sysdep.h"
 #include "bucomm.h"
 #include "nlm/common.h"
@@ -196,6 +196,12 @@ command:
            free ($2);
            free ($3);
            free ($4);
+           if (version_hdr->month < 1 || version_hdr->month > 12)
+             nlmheader_warn ("illegal month", -1);
+           if (version_hdr->day < 1 || version_hdr->day > 31)
+             nlmheader_warn ("illegal day", -1);
+           if (version_hdr->year < 1900 || version_hdr->year > 3000)
+             nlmheader_warn ("illegal year", -1);
          }
        | DEBUG
          {
@@ -239,6 +245,11 @@ command:
            fixed_hdr->flags &=~ nlmlex_get_number ($2);
            free ($2);
          }
+       | FULLMAP
+         {
+           map_file = "";
+           full_map = true;
+         }
        | FULLMAP STRING
          {
            map_file = $2;
@@ -260,6 +271,10 @@ command:
          {
            input_files = string_list_append (input_files, $2);
          }
+       | MAP
+         {
+           map_file = "";
+         }
        | MAP STRING
          {
            map_file = $2;
@@ -346,7 +361,7 @@ command:
              }
            var_hdr->threadNameLength = len;
            strncpy (var_hdr->threadName, $2, len);
-           var_hdr->screenName[NLM_MAX_THREAD_NAME_LENGTH] = '\0';
+           var_hdr->threadName[len] = '\0';
            free ($2);
          }
        | TYPE STRING
This page took 0.029395 seconds and 4 git commands to generate.