[llvm-bugs] [Bug 46262] New: Miscompilation leads to system out to memory
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Jun 9 20:07:39 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46262
Bug ID: 46262
Summary: Miscompilation leads to system out to memory
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: release blocker
Priority: P
Component: -New Bugs
Assignee: unassignedclangbugs at nondot.org
Reporter: changochen1 at gmail.com
CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org,
neeilans at live.com, richard-llvm at metafoo.co.uk
We found a bug that can exhaust the memory of the os.
POC:
---
int a;
int b() {
int c;
short d, *e = b();
switch (c)
do {
case 3:
if (a)
e = &d;
case 6:
e++;
} while (e);
return 1;
}
---
Cmdline:
---
clang-11 -cc1 -emit-obj -O3 -o /dev/null -x c poc.c
---
Clang-version:
---
clang version 11.0.0 (https://github.com/llvm/llvm-project.git
641d5ac4d1965990fcf981f153369b038816cd16)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /home/xxxx/llvm-project/build_clean/bin
---
The compilation exhausts the 256G on my system. Tested on the latest
update-to-date master branch of clang.
--
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/20200610/9281c1de/attachment-0001.html>
More information about the llvm-bugs
mailing list