aboutsummaryrefslogtreecommitdiffstats
path: root/executor/common_linux.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2021-10-05 11:09:48 +0200
committerDmitry Vyukov <dvyukov@google.com>2021-10-05 15:45:04 +0200
commitd9ffc81421c7dcf20d88106c5dca34ec35cb610a (patch)
treeb3db9dc55acbfd6f175d87718a7159bb72002c52 /executor/common_linux.h
parent8a6b1a8da46b1f7e601339d52caa0fbb0bcdd490 (diff)
pkg/compiler: fix infinite recursion in template instantiation
Fix a bug found by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=17240 We handled the case of infinite recursion in templates but only if the full type name matches precisely (A -> B -> A). In this case the name constantly changes due to different template arguments. Per se this is a not an error (and we have real cases that use this, e.g. when an nlattr_t contains nested nlattr_t's), but it's an error if it recurses infinitely. Restrict recursion on the same template to 10 levels.
Diffstat (limited to 'executor/common_linux.h')
0 files changed, 0 insertions, 0 deletions