bug-binutils
[Top][All Lists]
Advanced

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

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


From: cvs-commit at gcc dot gnu.org
Subject: [Bug gas/22324] Negative .rept count causes out-of-memory
Date: Fri, 20 Oct 2017 10:46:33 +0000

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

--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot 
gnu.org> ---
The master branch has been updated by Nick Clifton <address@hidden>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=808811a36951c6bc2ee9d56124603d7ef88a019e

commit 808811a36951c6bc2ee9d56124603d7ef88a019e
Author: Nick Clifton <address@hidden>
Date:   Fri Oct 20 11:45:19 2017 +0100

    Improve handling of REPT pseudo op with a negative count.

        PR 22324
        * read.c (s_rept): Use size_t type for count parameter.
        (do_repeat): Change type of count parameter to size_t.
        Issue an error is the count parameter is negative.
        (do_repeat_with_expression): Likewise.
        * read.h: Update prototypes for do_repeat and
        do_repeat_with_expression.
        * doc/as.texinfo (Rept): Document that a zero count is allowed but
        negative counts are not.
        * config/tc-rx.c (rx_rept): Use size_t type for count parameter.
        * config/tc-tic54x.c (tic54x_loop): Cast count parameter to size_t
        type.
        * testsuite/gas/macros/end.s: Add a test using a negative repeat
        count.
        * testsuite/gas/macros/end.l: Add expected error message.

-- 
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]