Skip to content

Commit 0177542

Browse files
committed
gh: include config.h in cflite fuzz targets before envmodules.h
lib/envmodules.h declares its ObjCmd entry points with the MODULE_SCOPE macro, which lib/config.h defines and lib/envmodules.c always includes first; the fuzz targets only included envmodules.h and relied on whatever incidental fallback the local Tcl headers happened to provide, which the stricter clang used on the actual CI image (Ubuntu's Tcl 8.6) does not: "unknown type name 'MODULE_SCOPE'". Include config.h first in each fuzz target, same as envmodules.c does. Assisted-by: Claude:claude-sonnet-5 Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
1 parent 71cecf0 commit 0177542

4 files changed

Lines changed: 4 additions & 0 deletions

File tree

‎.clusterfuzzlite/fuzz_getfilesindirectory.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <unistd.h>
1717
#include <fcntl.h>
1818
#include <stdio.h>
19+
#include "config.h"
1920
#include "envmodules.h"
2021

2122
#define MAX_ENTRIES 32

‎.clusterfuzzlite/fuzz_parsedatetimearg.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
#include <stdint.h>
77
#include <stddef.h>
8+
#include "config.h"
89
#include "envmodules.h"
910

1011
int

‎.clusterfuzzlite/fuzz_readfile.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#include <stdio.h>
1515
#include <sys/mman.h>
1616
#include <unistd.h>
17+
#include "config.h"
1718
#include "envmodules.h"
1819

1920
int

‎.hunspell.en.dic‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,3 +1516,4 @@ readfile
15161516
request's
15171517
uid
15181518
gitignored
1519+
ObjCmd

0 commit comments

Comments
 (0)