https://sourceware.org/bugzilla/show_bug.cgi?id=23940
            Bug ID: 23940
           Summary: check bounds befroe using
           Product: binutils
           Version: 2.32 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: gas
          Assignee: unassigned at sourceware dot org
          Reporter: wu.heng at zte dot com.cn
  Target Milestone: ---

Created attachment 11422
  --> https://sourceware.org/bugzilla/attachment.cgi?id=11422&action=edit
check bounds befroe using

The var "idx" should be checked before using in function "getstring"
gas/macro.c:288.

          while ((in->ptr[idx] != '>' || nest)
                 && idx < in->len)

The out of bounds judgment should be in front of using.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to