projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9003da2
)
test-json: avoid deep stack recursion under msan
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 22 Feb 2019 11:05:24 +0000
(12:05 +0100)
committer
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Mon, 25 Feb 2019 09:07:18 +0000
(10:07 +0100)
src/test/test-json.c
patch
|
blob
|
history
diff --git
a/src/test/test-json.c
b/src/test/test-json.c
index
fdf1b4f
..
f55edfd
100644
(file)
--- a/
src/test/test-json.c
+++ b/
src/test/test-json.c
@@
-391,6
+391,13
@@
static void test_depth(void) {
log_info("max depth at %u", i);
break;
}
+#if HAS_FEATURE_MEMORY_SANITIZER
+ /* msan doesn't like the stack nesting to be too deep. Let's quit early. */
+ if (i >= 128) {
+ log_info("quitting early at depth %u", i);
+ break;
+ }
+#endif
assert_se(r >= 0);