This repository is a mirror of https://git.openwrt.org/openwrt/openwrt.git It is for reference only and is not active for check-ins. We will continue to accept Pull Requests here. They will be merged via staging trees then into openwrt.git.
This report summarizes scanner evidence for openwrt/openwrt, a C project with 28,703 GitHub stars. SynthScan examined 342,586 lines of code across 1130 source files, recording 1793 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 4.7 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 1782 finding(s).
Are imports declared and package/API names verified? 6 finding(s).
Are wrappers, guards, and repeated structures necessary? 6 finding(s).
Which changes need focused human review? 1793 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 1793 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tools/mklibs/include/elf.h | 121 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 141 | #define ELFOSABI_NETBSD 2 /* NetBSD. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 161 | #define ET_EXEC 2 /* Executable file */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 181 | #define EM_MIPS_RS3_LE 10 /* MIPS R3000 little-endian */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 201 | #define EM_H8_300 46 /* Hitachi H8/300 */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 221 | #define EM_ST9PLUS 67 /* STMicroelectronics ST9+ 8/16 mc */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 241 | #define EM_V850 87 /* NEC v850 */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 301 | (Solaris). */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 321 | #define SHT_REL 9 /* Relocation entries, no addends */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 341 | #define SHT_HIOS 0x6fffffff /* End OS-specific type */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 421 | #define SYMINFO_NUM 2 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 441 | #define STB_LOOS 10 /* Start of OS-specific */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 561 | #define PT_SHLIB 5 /* Reserved */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 581 | #define PF_R (1 << 2) /* Segment is readable */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 641 | #define DT_RELASZ 8 /* Total size of Rela relocs */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 661 | #define DT_FINI_ARRAYSZ 28 /* Size in bytes of DT_FINI_ARRAY */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 681 | #define DT_CHECKSUM 0x6ffffdf8 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 701 | #define DT_GNU_LIBLIST 0x6ffffef9 /* Library list */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 721 | #define DT_VERDEF 0x6ffffffc /* Address of version definition | COMMENT |
| LOW | tools/mklibs/include/elf.h | 741 | #define DF_BIND_NOW 0x00000008 /* No lazy binding for this object */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 921 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 1041 | #define ELF32_M_SYM(info) ((info) >> 8) | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1061 | #define R_68K_PC32 4 /* PC relative 32 bit */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1081 | #define R_68K_NUM 23 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1101 | block offset */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1121 | #define R_386_TLS_LDM_32 28 /* Direct 32 bit for local dynamic | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1141 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 1161 | #define R_SPARC_16 2 /* Direct 16 bit */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1181 | #define R_SPARC_RELATIVE 22 /* Adjust by program base */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1201 | #define R_SPARC_PC_LM22 39 /* Low miggle 22 bits of ... */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1221 | #define R_SPARC_TLS_LDM_HI22 60 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1261 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 1281 | /* The following are non-official names and should not be used. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1301 | #define SHT_MIPS_LIBLIST 0x70000000 /* Shared objects used in link */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1321 | #define SHT_MIPS_OPTSYM 0x70000017 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1341 | /* Legal values for sh_flags field of Elf32_Shdr. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1401 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 1421 | #define OEX_PRECISEFP OEX_FPDBUG | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1461 | #define R_MIPS_HI16 5 /* High 16 bit */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1481 | #define R_MIPS_DELETE 27 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1501 | /* Special program header types. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1521 | #define DT_MIPS_GOTSYM 0x70000013 /* First GOT entry in DYNSYM */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1541 | #define DT_MIPS_CXX_FLAGS 0x70000022 /* Flags indicating for C++ flavor. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1561 | /* Legal values for DT_MIPS_FLAGS Elf32_Dyn entry. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1621 | #define EF_PARISC_EXT 0x00020000 /* Program uses arch. extensions. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1661 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 1681 | #define R_PARISC_SEGREL32 49 /* 32 bits segment rel. address. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1701 | #define R_PARISC_DIR16F 85 /* 16 bits of eff. address. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1721 | #define R_PARISC_PLTOFF16WF 118 /* 16 bits PLT-rel. address. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1741 | #define R_PARISC_TPREL14DR 220 /* TP-rel. address, right 14 bits. */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1761 | #define PT_HP_CORE_LOADABLE (PT_LOOS + 0x6) | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1801 | COMMENT | |
| LOW | tools/mklibs/include/elf.h | 1821 | #define R_ALPHA_SREL64 11 /* PC relative 64 bit */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1861 | #define EF_PPC_RELOCATABLE 0x00010000 /* PowerPC -mrelocatable flag*/ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1881 | #define R_PPC_GOT16_LO 15 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1901 | #define R_PPC_SECTOFF_HI 35 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1921 | #define R_PPC_GOT_TLSLD16 83 /* half16* (sym+add)@got@tlsld */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1941 | #define R_PPC_EMB_NADDR16_LO 103 | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1961 | #define R_PPC_DIAB_RELSDA_HI 184 /* like EMB_RELSDA, but high 16 bit */ | COMMENT |
| LOW | tools/mklibs/include/elf.h | 1981 | #define R_PPC64_REL14 R_PPC_REL14 /* PC relative 16 bit */ | COMMENT |
| 1683 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | scripts/slugimage.pl | 202 | # Create an empty jffs2 block. | COMMENT |
| MEDIUM | scripts/slugimage.pl | 620 | # Define the skip region for the initial Sercomm header. | COMMENT |
| MEDIUM | scripts/slugimage.pl | 629 | # Define the skip region for the inline Sercomm header. | COMMENT |
| MEDIUM | scripts/slugimage.pl | 1130 | # Create an empty partition of the requested size. | COMMENT |
| MEDIUM | scripts/mkits-qsdk-ipq-image.sh | 31 | # Create a default, fully populated DTS file | COMMENT |
| MEDIUM | scripts/symlink-tree.sh | 2 | # Create a new openwrt tree with symlinks pointing at the current tree | COMMENT |
| MEDIUM | scripts/dl_cleanup.py | 283 | # Create a directory listing and parse the file names. | COMMENT |
| MEDIUM | scripts/dl_cleanup.py | 299 | # Create a map of programs | COMMENT |
| MEDIUM | scripts/mkits-zyxel-fit.sh | 19 | # Create a default, fully populated DTS file | COMMENT |
| MEDIUM | scripts/mkits-zyxel-fit-filogic.sh | 19 | # Create a default, fully populated DTS file | COMMENT |
| MEDIUM | scripts/checkpatch.pl | 592 | #Create a search pattern for all these functions to speed up a loop below | COMMENT |
| MEDIUM | scripts/checkpatch.pl | 613 | #Create a search pattern for all these strings to speed up a loop below | COMMENT |
| MEDIUM | scripts/checkpatch.pl | 648 | #Create a search pattern for all these strings to speed up a loop below | COMMENT |
| MEDIUM | scripts/mkits.sh | 199 | # Create a default, fully populated DTS file | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | target/linux/gemini/base-files/lib/upgrade/platform.sh | 77 | # Check if we have the new partition scheme, else do it the old | COMMENT |
| LOW | scripts/brcmImage.pl | 78 | local $/; # Set input to "slurp" mode. | CODE |
| LOW | scripts/checkpatch.pl | 2613 | # Check if the commit log has what seems like a diff which can confuse patch | COMMENT |
| LOW | scripts/checkpatch.pl | 2659 | # Check if MAINTAINERS is being updated. If so, there's probably no need to | COMMENT |
| LOW | scripts/checkpatch.pl | 2764 | # Check if the commit log is in a possible stack dump | COMMENT |
| LOW | scripts/checkpatch.pl | 2888 | # Check if it's the start of a commit log | COMMENT |
| LOW | scripts/checkpatch.pl | 2898 | # Check if there is UTF-8 in a commit log when a mail header has explicitly | COMMENT |
| LOW | scripts/checkpatch.pl | 3761 | # Check if either of these lines are modified, else | COMMENT |
| LOW | package/base-files/files/lib/upgrade/nand.sh | 480 | # Check if passed file is a valid one for NAND sysupgrade. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | …get/linux/pistachio/base-files/lib/upgrade/platform.sh | 19 | # fact we don't even want to reboot as part of seamless | COMMENT |
| LOW | …get/linux/pistachio/base-files/lib/upgrade/platform.sh | 21 | # the next reboot to boot from that partition. Could just call | COMMENT |
| LOW | target/linux/bcm4908/base-files/lib/upgrade/platform.sh | 84 | # JFFS2) so just use bcm4908img instead of bash hacks. | COMMENT |
| LOW | target/linux/econet/image/tclinux-trx.sh | 154 | # creating their TRX header, so we just use that. | COMMENT |
| LOW | scripts/xxdi.pl | 46 | # to '_', or, if this is stdin, just use "stdin" as the name. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | target/linux/realtek/image/hasivo-stock-patch.py | 255 | CODE | |
| LOW | scripts/dl_cleanup.py | 222 | CODE | |
| LOW | scripts/dl_github_archive.py | 133 | CODE | |
| LOW | scripts/dl_github_archive.py | 253 | CODE | |
| LOW | scripts/make-sbom.py | 53 | CODE | |
| LOW | scripts/make-sbom.py | 106 | CODE | |
| LOW | scripts/flashing/jungo-image.py | 94 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/belkin-header.py | 26 | CODE | |
| LOW | scripts/belkin-header.py | 27 | CODE | |
| LOW | scripts/dl_cleanup.py | 10 | CODE | |
| LOW | scripts/cameo-imghdr.py | 10 | CODE | |
| LOW | scripts/cameo-imghdr.py | 11 | CODE | |
| LOW | scripts/flashing/jungo-image.py | 30 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | scripts/dl_cleanup.py | 296 | except EntryParseError as e: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/dl_github_archive.py | 279 | except Exception: | CODE |
| LOW | scripts/dl_github_archive.py | 366 | except Exception as e: | CODE |
| LOW | scripts/dl_github_archive.py | 428 | except Exception as ex: | CODE |
| MEDIUM | scripts/flashing/jungo-image.py | 73 | print("Error: No linux support for A0 stepping!") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/size_compare.sh | 17 | ### Usage: | COMMENT |
| LOW | package/base-files/files/lib/upgrade/tar.sh | 3 | # Example usage: | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | package/base-files/files/lib/upgrade/nand.sh | 318 | # WARNING: This fails if tar contains more than one 'sysupgrade-*' directory. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | scripts/dl_github_archive.py | 370 | def _init_commit_ts_remote_get(self, url, attrpath): | CODE |