[LLVMbugs] [Bug 21596] Pointer to an address returned from function does not correlate to pointer to address in function. This causes access to different place in memory than was expected.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 18 10:13:33 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21596

jendas1 at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |---

--- Comment #2 from jendas1 at gmail.com ---
Yes, the addresses are now the same, but that wasn't the main bug I wanted to
issue. Main problem is that the values in the array are somewhat modified.
(check the first line in the output). When I run this program compiled by
another compiler it works as expected. (All values are 100).
Updated output (LLVM):
Address: 0x100105530
  100   100   100 
  100   100   100 
  100   100   100 
Address: 0x100105530
1070432     1   100 
  100   100   100 
  100   100   100

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141118/9e334819/attachment.html>


More information about the llvm-bugs mailing list