summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/functionalities/reproducer/gdb-remote/main.c
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2018-12-11 21:54:52 +0000
committerErich Keane <erich.keane@intel.com>2018-12-11 21:54:52 +0000
commitef65d6c5c453092dd7c3058231031555cc603759 (patch)
treec07a78860cad37dc9b991ef14800d782a65d06b2 /lldb/packages/Python/lldbsuite/test/functionalities/reproducer/gdb-remote/main.c
parente833cd46eb6980115f117999ea623748535eac9e (diff)
downloadbcm5719-llvm-ef65d6c5c453092dd7c3058231031555cc603759.tar.gz
bcm5719-llvm-ef65d6c5c453092dd7c3058231031555cc603759.zip
Replace Const-Member checking with non-recursive version.
As reported in PR39946, these two implementations cause stack overflows to occur when a type recursively contains itself. While this only happens when an incomplete version of itself is used by membership (and thus an otherwise invalid program), the crashes might be surprising. The solution here is to replace the recursive implementation with one that uses a std::vector as a queue. Old values are kept around to prevent re-checking already checked types. Change-Id: I582bb27147104763d7daefcfee39d91f408b9fa8 llvm-svn: 348899
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/reproducer/gdb-remote/main.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud