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.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils