bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gas/22324] New: Negative .rept count causes out-of-memory


From: eager at eagercon dot com
Subject: [Bug gas/22324] New: Negative .rept count causes out-of-memory
Date: Thu, 19 Oct 2017 21:26:24 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=22324

            Bug ID: 22324
           Summary: Negative .rept count causes out-of-memory
           Product: binutils
           Version: 2.30 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: eager at eagercon dot com
  Target Milestone: ---

Created attachment 10545
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10545&action=edit
Patch - Force .rept count to zero if negative

A negative count for the .rept pseudo-opt causes an out-of-memory failure.  

To reproduce:
$ cat test.s
        .rept -1 
        .long 3
        .endr
$ as test.s
as: out of memory allocating 18446744073709551607 bytes after a total of 266240
bytes

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]