Catch overflow in gas s_space
authorAlan Modra <amodra@gmail.com>
Wed, 1 Mar 2023 02:28:41 +0000 (12:58 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 1 Mar 2023 02:58:13 +0000 (13:28 +1030)
commitd80081ef39c729b0f5f548c9567be2d80dcc2fd0
tree0ae6caa3423858c9d4fc02e307bed3a4802ec8e4
parentd09f4d4a9b96dcb4b732fe13549506be5b276ec2
Catch overflow in gas s_space

Also fix an error introduced in 1998 in reporting a zero count for
negative counts.

      * read.c (s_space): Use unsigned multiply, and catch overflow.
      Correct order of tests for invalid repeat counts.  Ensure
      ignored directives don't affect mri_pending_align.
gas/read.c