aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/utils.h
diff options
authorwenlunpeng <wenlunpeng@uniontech.com>2024-09-23 16:39:44 +0800
committerChris Li <sparse@chrisli.org>2025-09-25 07:28:08 -0700
commitbb97bcbd4f7e00896ee447752dfa59bf302c7d17 (patch)
tree434fbaeb056897244c9220f5d0cef2b6631d8633 /utils.h
parent366ad4b2fa3e8361001a08b3719881b6d7c87e90 (diff)
downloadsparse-dev-bb97bcbd4f7e00896ee447752dfa59bf302c7d17.tar.gz
fix: Skip if symbol have no op when handle_qualifiers
Missing s->op will cause a SIGSEGV when trying to get s->op->type. I encountered the issue when building with sparse in a linux kernel tree containing a vendor network driver. A simple `make` will success but a `make C=2` will exit with exit-code 139. The coredump shows that s->op here is NULL when dealing with a source code line like: u8 *byte; Lines like this exist everywhere. I cannot figure out why just this file breaks sparse. But I think the NULL judge is needed here. Signed-off-by: wenlunpeng <wenlunpeng@uniontech.com> Signed-off-by: Chris Li <sparse@chrisli.org>
Diffstat (limited to 'utils.h')
0 files changed, 0 insertions, 0 deletions