From f2bf6886663c2c4bdc58d126ed3d17f1b85d5f12 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 9 Apr 2025 15:46:46 +0200 Subject: tools/syz-declextract: handle ints more carefully It seems that new clang is more picky about asserts for large ints. It not assert-fails when converting large ints to int64. Be more careful when converting these to ints. --- tools/syz-declextract/testdata/scopes.c.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tools/syz-declextract/testdata/scopes.c.json') diff --git a/tools/syz-declextract/testdata/scopes.c.json b/tools/syz-declextract/testdata/scopes.c.json index ab03673b0..b5921869c 100644 --- a/tools/syz-declextract/testdata/scopes.c.json +++ b/tools/syz-declextract/testdata/scopes.c.json @@ -284,6 +284,14 @@ } } ] + }, + { + "arg": 0, + "values": [ + "LARGE_UINT", + "LARGE_SINT" + ], + "loc": 3 } ] } @@ -318,6 +326,16 @@ "name": "FOO_IOCTL8", "filename": "include/uapi/file_operations.h", "value": 25352 + }, + { + "name": "LARGE_SINT", + "filename": "scopes.c", + "value": 0 + }, + { + "name": "LARGE_UINT", + "filename": "scopes.c", + "value": -9223372036854775808 } ], "structs": [ -- cgit mrf-deployment