bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/31130] New: Return of Stack Address in C_alloca


From: 1157401338 at qq dot com
Subject: [Bug binutils/31130] New: Return of Stack Address in C_alloca
Date: Sun, 10 Dec 2023 06:38:09 +0000

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

            Bug ID: 31130
           Summary: Return of Stack Address in C_alloca
           Product: binutils
           Version: 2.32
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: binutils
          Assignee: unassigned at sourceware dot org
          Reporter: 1157401338 at qq dot com
  Target Milestone: ---

hello, i found there is a return of stack address in function C_alloca located
in libiberty/alloca.c
step1: initialize "depth" with address of "probe", which is a local variable.

step2: store "depth" into "new_storeage" at statement:
       ((header *) new_storage)->h.deep = depth;

step3: return "new_storage" with a offset.

can you help me to confirm:
1. is this a return of stack address(or stack address can be manipulated out of
the function by subtracting the offset).
2. is the implementation of this function is on purpose?

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