PR24125, Assertion failure with embedded NULs in string
authorAlan Modra <amodra@gmail.com>
Thu, 24 Jan 2019 23:04:14 +0000 (09:34 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 24 Jan 2019 23:11:41 +0000 (09:41 +1030)
An assertion that can be triggered by user input is wrong, so remove
it.  I believe the NUL would have been accepted before the PR20902
patch.

PR 20902
PR 24125
* read.c (stringer): Delete assertion.

gas/ChangeLog
gas/read.c

index 972e227..a930a84 100644 (file)
@@ -1,3 +1,9 @@
+2019-01-25  Alan Modra  <amodra@gmail.com>
+
+       PR 20902
+       PR 24125
+       * read.c (stringer): Delete assertion.
+
 2019-01-21  Nick Clifton  <nickc@redhat.com>
 
        * po/uk.po: Updated Ukranian translation.
index 3c84d43..228fe7a 100644 (file)
@@ -5364,8 +5364,6 @@ stringer (int bits_appendzero)
          if (append_zero)
            stringer_append_char (0, bitsize);
 
-         know (input_line_pointer[-1] == '\"');
-
 #if !defined(NO_LISTING) && defined (OBJ_ELF)
          /* In ELF, when gcc is emitting DWARF 1 debugging output, it
             will emit .string with a filename in the .debug section