Repository Analysis

pbatard/rufus

The Reliable USB Formatting Utility

2.1 Likely human-written View on GitHub
2.1
Adjusted Score
2.1
Raw Score
100%
Time Factor
2026-05-18
Last Push
36,241
Stars
C
Language
204,460
Lines of Code
518
Files
426
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 4LOW 422

Pattern Findings

426 matches across 4 categories. Click a row to expand file-level details.

Over-Commented Block420 hits · 406 pts
SeverityFileLineSnippet
LOW_pre-commit.sh1#!/bin/sh
LOWres/setup/resource.h1//{{NO_DEPENDENCIES}}
LOWsrc/xml.c21 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
LOWsrc/localization.h21#include <stddef.h>
LOWsrc/rufus.c21#include <stdlib.h>
LOWsrc/rufus.c41
LOWsrc/rufus.c3381 };
LOWsrc/process.c21 * You should have received a copy of the GNU General Public License
LOWsrc/ui.h21#include <stdint.h>
LOWsrc/ui.h61 UPT_ETA,
LOWsrc/settings.h21#include "rufus.h"
LOWsrc/settings.h41#define SETTING_DISABLE_VHDS "DisableVHDs"
LOWsrc/format_fat32.c21#ifdef _CRTDBG_MAP_ALLOC
LOWsrc/format_fat32.c361 // Sector 0 Boot Sector
LOWsrc/format.c21#include <crtdbg.h>
LOWsrc/format.c41#include "resource.h"
LOWsrc/vhd.c21// because we must apply a delay-loading workaround, and that workaround
LOWsrc/format_ext.c21#include <stdlib.h>
LOWsrc/stdio.c21#include <stdlib.h>
LOWsrc/stdio.c281
LOWsrc/smart.h21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
LOWsrc/smart.h41#define USB_JMICRON_ATA_PASSTHROUGH 0xdf
LOWsrc/smart.h61
LOWsrc/drive.h21#include <stdint.h>
LOWsrc/drive.h41#define PI_MAIN 0
LOWsrc/drive.h281 HRESULT (STDMETHODCALLTYPE *Wait)(__RPC__in IVdsAsync *This, __RPC__out HRESULT *pHrResult, __RPC__out VDS_ASYNC_OUTPUT
LOWsrc/drive.h301#define IVdsPack_Release(This) (This)->lpVtbl->Release(This)
LOWsrc/dos.c21/* Memory leaks detection - define _CRTDBG_MAP_ALLOC as preprocessor macro */
LOWsrc/dos.c41static DWORD DiskImageSize;
LOWsrc/hash.c61
LOWsrc/hash.c81
LOWsrc/msapi_utf8.h21 * You should have received a copy of the GNU Lesser General Public
LOWsrc/msapi_utf8.h41#include <sys/types.h>
LOWsrc/msapi_utf8.h61 WideCharToMultiByte(CP_UTF8, 0, wsrc, -1, NULL, 0, NULL, NULL)
LOWsrc/dos_locale.c21#ifdef _CRTDBG_MAP_ALLOC
LOWsrc/missing.h21#include <intrin.h>
LOWsrc/missing.h41
LOWsrc/missing.h61#pragma intrinsic(_byteswap_ushort)
LOWsrc/missing.h161 return r;
LOWsrc/missing.h181#define INTERNET_OPTION_HTTP_DECODING 65
LOWsrc/missing.h201#define IMAGE_FILE_MACHINE_LOONGARCH32 0x6232
LOWsrc/ntdll.h21 * You should have received a copy of the GNU General Public License
LOWsrc/ntdll.h41#define STATUS_ACCESS_DENIED ((NTSTATUS)0xC0000022L)
LOWsrc/ntdll.h241} RTL_HEAP_PARAMETERS, *PRTL_HEAP_PARAMETERS;
LOWsrc/ntdll.h261// Privileges
LOWsrc/ntdll.h281#define SE_SHUTDOWN_PRIVILEGE (19L)
LOWsrc/localization.c21#ifdef _CRTDBG_MAP_ALLOC
LOWsrc/rufus.h21#include <inttypes.h>
LOWsrc/rufus.h41
LOWsrc/rufus.h61#define LEFT_TO_RIGHT_MARK "\u200e"
LOWsrc/rufus.h81#define MAX_LOG_SIZE 0x7FFFFFFE
LOWsrc/rufus.h101#define NET_SESSION_TIMEOUT 3500 // How long we should wait to connect, send or receive internet data (in ms)
LOWsrc/rufus.h121#define CBN_SELCHANGE_INTERNAL (CBN_SELCHANGE + 256)
LOWsrc/rufus.h141#elif defined(_M_IX86)
LOWsrc/rufus.h161#define PERCENTAGE(percent, value) ((1ULL * (percent) * (value)) / 100ULL)
LOWsrc/rufus.h181#define safe_strcmp(str1, str2) strcmp(((str1 == NULL) ? "<NULL>" : str1), ((str2 == NULL) ? "<NULL>" : str2))
LOWsrc/rufus.h201#define safe_vsnprintf(buf, size, format, arg) _vsnprintf_s(buf, size, _TRUNCATE, format, arg)
LOWsrc/rufus.h361#define WINPE_I386 0x0007
LOWsrc/rufus.h381#define IS_FAT32_COMPAT(r) (((r.has_4GB_file == 0 && !HAS_FATLESS_GRUB(r)) || (r.has_4GB_file == 0x11 && allow_dual_uef
LOWsrc/rufus.h681// Windows User Experience (unattend.xml) flags and masks
360 more matches not shown…
Self-Referential Comments3 hits · 9 pts
SeverityFileLineSnippet
MEDIUMres/scripts/loadcfg.py17# Create a temp file as our source
MEDIUMsrc/localization_data.sh9# Create the first sed command file
MEDIUMsrc/localization_data.sh68# Create the second sed command file
AI Slop Vocabulary1 hit · 3 pts
SeverityFileLineSnippet
MEDIUMsrc/xml.c1062#ifdef EZXML_TEST // test harness
Slop Phrases2 hits · 3 pts
SeverityFileLineSnippet
LOWsrc/ui.c317 // Don't forget to add the dialog border width, since we resize the whole dialog
LOWsrc/ui.c515 // Don't forget to scroll the edit to the bottom after resize