From f6ede3a3f38422f581e15b28c203a682eac5c135 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 14 Nov 2024 16:09:59 +0100 Subject: tools/syz-declextract: add heuristic for sigsetsize --- tools/syz-declextract/syz-declextract.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools') 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")) { -- cgit mrf-deployment