diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2024-11-14 16:09:59 +0100 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2024-11-14 17:05:16 +0000 |
| commit | f6ede3a3f38422f581e15b28c203a682eac5c135 (patch) | |
| tree | d6f75d2f6fd651c61c6a9a5f584cfc2117066266 /tools | |
| parent | 6e87f9b3bb544587f270c029f6ec5f971c5fe3a7 (diff) | |
tools/syz-declextract: add heuristic for sigsetsize
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/syz-declextract/syz-declextract.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/syz-declextract/syz-declextract.cpp b/tools/syz-declextract/syz-declextract.cpp index bc5665dec..370102ef4 100644 --- a/tools/syz-declextract/syz-declextract.cpp +++ b/tools/syz-declextract/syz-declextract.cpp @@ -227,7 +227,12 @@ std::string int32Subtype(const std::string &name, const bool isSyscallParam) { std::string int64Subtype(const std::string &name, const bool isSyscallParam) { return "int64"; } -std::string intptrSubtype(const std::string &name, const bool isSyscallParam) { return "intptr"; } +std::string intptrSubtype(const std::string &name, const bool isSyscallParam) { + if (name == "sigsetsize") { + return makeConst(isSyscallParam, "intptr", "8"); + } + return "intptr"; +} std::string stringSubtype(const std::string &name, const char *defaultName = "string") { if (contains(name, "ifname") || endsWith(name, "dev_name")) { |
