Mintsuki
0556f4bfb4
lib/config: Re-examine shifted character after whitespace/CR removal
2026-04-19 00:35:14 +02:00
Mintsuki
a24f496c2e
Revert "misc: Enforce hash verification when UEFI Secure Boot is active"
...
This reverts commit 9e2f3e7587 .
2026-04-04 15:02:58 +02:00
Mintsuki
9e2f3e7587
misc: Enforce hash verification when UEFI Secure Boot is active
2026-04-02 22:21:54 +02:00
Mintsuki
b4f336d098
lib/config: Validate hex characters in config checksum
2026-04-02 22:21:54 +02:00
Mintsuki
dda61b00fa
lib/config: Reject config file too large for size_t
2026-04-02 22:21:54 +02:00
Mintsuki
a783704c87
config: Add NUL terminator check in config_get_entry header line scan
2026-03-06 13:11:53 +01:00
Mintsuki
c1fc0c5a96
lib/config: Use original allocation size when freeing config buffer
2026-02-09 13:02:39 +01:00
Mintsuki
93f1732655
lib/config: Fix off-by-one read past end in macro definition skip
2026-02-09 13:02:39 +01:00
Mintsuki
f1167da7a9
misc: Fix wrong format specifiers for 64-bit arguments in print calls
2026-02-09 13:02:39 +01:00
Mintsuki
b0ea0c5912
lib/config: Reset macros pointer to NULL after freeing macro list
2026-02-09 13:02:38 +01:00
Mintsuki
40cd6ffcc9
lib/config: Fix SMBIOS config buffer size off-by-one
2026-02-09 13:02:38 +01:00
Mintsuki
bf6134579b
lib/config: Skip empty SMBIOS config data to prevent OOB write
2026-02-09 13:02:38 +01:00
Mintsuki
4a14fe6139
lib/config: Guard against zero-length EFI device path nodes
2026-02-09 13:02:38 +01:00
Mintsuki
040d1646c8
config: Add bounds check for macro name buffer
2026-01-13 17:37:01 +01:00
Mintsuki
2f19d814b0
config: Add bounds checks to whitespace removal and macro parsing
2026-01-12 01:46:18 +01:00
Mintsuki
f46468e240
config: Free macro on malformed definition
2026-01-11 23:45:22 +01:00
Mintsuki
f928275180
acpi,config: Fix SMBIOS 3.0 entry point structure definition
2026-01-05 01:10:12 +01:00
Mintsuki
2c14cda023
config: Fix SMBIOS 3.0 table iteration using wrong field
2026-01-05 00:20:50 +01:00
Mintsuki
2159a4c3a5
lib/config: Use static buffers to fix memory leaks
2025-12-28 12:46:54 +01:00
Mintsuki
5fcaaff029
lib/config: Add SMBIOS structure validation and bounds checking
2025-12-26 13:45:09 +01:00
Mintsuki
4d5bfa6af2
lib/config: Return pointer to static buffer from config_get_value()
2025-12-25 18:56:36 +01:00
Mintsuki
e06cc37f68
lib/config: Change default paths for config search and ordering
...
Also prefer searching within the EFI app's directory first, on EFI.
2025-11-03 21:29:01 +01:00
Mintsuki
f362e6bb5a
config: Slight change to the config file search semantics for EFI
2025-03-16 09:43:18 +01:00
mintsuki
db8f63bdfd
config: Drop support for legacy config format
2025-02-10 13:31:18 +01:00
no92
03d62d883c
common: support SMBIOS-passed configs with a limine:config: prefix
...
This commit allows for passing configurations via SMBIOS. The first
encountered OEM string (type 11) that begins with a `limine:config:`
prefix is taken as the configuration. This takes priority over
configurations loaded from disk.
2024-11-04 02:46:48 +01:00
mintsuki
29907c9d12
config: Add and document FW_TYPE built-in macro. Fixes #422
2024-10-27 02:51:31 +02:00
mintsuki
0c2f0ddebe
build: Remove custom __riscv64 define in favour of built-in __riscv define
...
We do not support non-64-bit RISC-V anyways
2024-08-11 20:25:01 +02:00
mintsuki
9ac63ddd6a
lib/config: Also accept tab as whitespace after option colon
2024-08-05 19:20:18 +02:00
mintsuki
d914e6e4e4
config: Bring back support for legacy config with a warning
2024-08-02 14:39:14 +02:00
mintsuki
8cecd79ddb
lib/config: Ignore spaces at beginning of entry name
2024-08-02 06:18:28 +02:00
mintsuki
0357fdb4d8
lib/config: Use / to start entry names instead of :
2024-08-01 16:54:20 +02:00
mintsuki
ddd3f5161a
config: Change syntax to allow any casing for option names
2024-08-01 06:44:24 +02:00
mintsuki
a014d0758c
config: Change syntax to use colon instead of equals for options
2024-08-01 06:27:47 +02:00
Keegan Saunders
d9a2fb95a9
Add LoongArch support
2024-07-31 23:05:27 -04:00
mintsuki
4fe338c31f
misc: readline.h -> getchar.h and drop unused readline() code
2024-04-20 01:32:34 +02:00
mintsuki
17904009ad
config: Fix missing NULL check in init_config()
2024-04-19 23:42:57 +02:00
mintsuki
c4a8aada42
config: Discard trailing whitespace. Closes #321
2023-12-26 18:48:47 +01:00
mintsuki
cad3c72fce
config: Fix bug where macro definitions were not skipped over properly when parsing
2023-10-29 04:27:04 +01:00
mintsuki
57e4ae6e25
config: Disable editor by default if config b2sum present. Fixes #296
2023-08-29 22:34:20 -05:00
mintsuki
670b635ae8
config: Add and document ARCH built-in macro
2023-06-15 02:23:48 +02:00
mintsuki
c30afde043
config: Do not allow recovering from checksum mismatch panic
2023-02-07 00:28:51 +01:00
mintsuki
843be07536
config: No longer allow continuing boot on checksum mismatches
2023-02-07 00:23:10 +01:00
mintsuki
8c7a98310a
misc: Add support for enrolling config blake2b hash in executable
2023-02-06 23:58:19 +01:00
Qwinci
3dd0a6fb41
limine: Add UEFI PXE support
...
based on @qookei's original patch with small changes.
2023-01-17 18:47:36 +02:00
mintsuki
3d95c8960c
misc: Add limine subdir to stage3 and config search paths. Closes #225
2022-10-06 06:29:11 +02:00
mintsuki
c44f514738
misc: Rename UEFI and BIOS define macros
2022-09-02 02:29:12 +02:00
mintsuki
27711e3c27
fs: Add case insensitive fopen() for config and system files
2022-09-02 01:12:13 +02:00
mintsuki
07080dcbc2
misc: blib.h -> misc.h
2022-08-26 23:44:47 +02:00
mintsuki
11b56c39f0
config: Only make keys global if before first entry
2022-08-14 14:45:20 +02:00
mintsuki
e3c4fbea25
config: Remove stray include
2022-08-06 20:21:56 +02:00