Commit Graph

85 Commits

Author SHA1 Message Date
Mintsuki
0fb6bb6c7c host/limine: Fix empty_lba leak on error during GPT-to-MBR conversion 2026-04-19 00:35:14 +02:00
Mintsuki
0a24c40c7e host/limine: Validate uninstall data entry size before malloc 2026-04-02 01:44:58 +02:00
Mintsuki
2921ca5543 host/limine: Fix ENDSWAP width mismatch in GPT-to-MBR partition entry conversion 2026-03-07 03:26:05 +01:00
Mintsuki
f30afb3f34 host/limine: Make {mul,add}_u64_overflow() static inline to avoid gcc unused warnings 2026-03-06 14:02:34 +01:00
Mintsuki
bd6eb5e587 host/limine: Add overflow checks for GPT partition LBA calculations 2026-03-06 13:11:53 +01:00
Mintsuki
ba45ebed49 host/limine: Replace GCC/Clang __builtin overflow checks with portable C99 helpers 2026-03-06 13:11:53 +01:00
Mintsuki
879cfbfd68 host/limine: Fix signature search to backtrack to match start on mismatch 2026-02-09 13:02:39 +01:00
Mintsuki
83f22ae441 host/limine: Fix signature search missing matches after partial prefix overlap 2026-02-09 13:02:39 +01:00
Mintsuki
75b8b74ffc host/limine: Guard secondary GPT nuke against alternate_lba underflow 2026-02-09 13:02:39 +01:00
Mintsuki
7f4789578f host/limine: Bounds-check GPT partition entry offset arithmetic for overflow 2026-02-09 13:02:39 +01:00
Mintsuki
7af48b5b35 host/limine: Fix IS_WINDOWS preprocessor precedence to correctly exclude Cygwin 2026-02-09 13:02:39 +01:00
Mintsuki
79036f50a7 host/limine: Fix buffer overflow in GPT-to-MBR conversion 2026-01-13 01:03:08 +01:00
Mintsuki
cde9b6402e host/limine: Fix off-by-one in GPT partition validation 2026-01-13 01:03:08 +01:00
Mintsuki
774a45d650 host/limine: Validate partition sector count before GPT to MBR conversion 2026-01-13 01:03:08 +01:00
Mintsuki
bc61d49556 host/limine: Fix ftell() error check and loop bound underflow in enroll_config 2026-01-12 01:46:18 +01:00
Mintsuki
0d277afff3 host/limine: Fix uninitialized variable warnings 2026-01-12 01:46:18 +01:00
Mintsuki
c44ac88d6f host/limine: Fix argument skipping in enroll_config after remove_arg 2026-01-12 01:46:18 +01:00
Mintsuki
bc3e430fa1 host/limine: Fix off-by-one in --uninstall-data-file parsing 2026-01-12 01:46:18 +01:00
Mintsuki
495d8a5c3b host: Fix memory leaks in error paths 2026-01-11 23:45:22 +01:00
Mintsuki
8b0a80a955 host: Check sscanf return value for partition number 2026-01-11 23:45:22 +01:00
Mintsuki
e0e68fc234 host: Validate uninstall data entry count before use 2026-01-11 23:45:22 +01:00
Mintsuki
52838119cb misc: Do not bother making binary releases installable 2025-11-22 00:59:04 +01:00
Integral
be0390863d host/limine: Replace sizeof in for loop with SIZEOF_ARRAY
Replace `sizeof` in for loop with `SIZEOF_ARRAY` macro for better
readability.
2025-10-27 23:49:31 +08:00
Mintsuki
53be98e208 host/limine: Update errors and warnings to not print argv[0] 2025-10-05 11:07:19 +02:00
Mintsuki
6747de5e14 host/limine: Remove useless redundant line 2025-10-05 10:49:30 +02:00
Mintsuki
48c7801751 host/limine: Add autodetection of BIOS boot partition 2025-10-05 10:40:42 +02:00
Mintsuki
409f16f967 host/limine: Extend safety checks to cover the chosen BIOS/GPT boot partition 2025-10-04 21:35:29 +02:00
Mintsuki
9b359963dc host/limine: Make some info messages less excited 2025-10-04 06:19:29 +02:00
Mintsuki
95127304d1 host/limine; stage1/hdd: Remove logic to divide stage2 code in two
This is no longer needed since we do not support GPT embedding anymore.
2025-10-03 10:13:49 +02:00
Mintsuki
201055e1b7 host/limine: Ensure GPT BIOS partition is at least 32KiB 2025-08-16 08:16:17 +02:00
Mintsuki
d6ce05b5ff build: Miscellaneous makefile maintenance and improvements 2025-08-13 07:05:30 +02:00
Mintsuki
03e3853541 build: Minor makefile changes 2025-08-03 07:24:31 +02:00
Mintsuki
1bb1b14f52 Revert "build: Many makefile improvements (hopefully, includes bodging)"
This reverts commit 10514f5557.
2025-08-02 22:25:12 +02:00
Mintsuki
b8d4a54e64 build: Many makefile improvements (hopefully, includes bodging) 2025-07-31 03:30:51 +02:00
Mintsuki
eb68a3326a host/limine: Fix some mismatched printf format specifiers 2025-07-12 15:36:57 +02:00
Mintsuki
0ea9b039ad host/limine: Drop support for non-standard GPT-embedding 2025-05-03 22:14:26 +02:00
Mintsuki
6d0d7d3a1a host/limine: Do not say 'GPT partition table' 2025-03-16 17:30:51 +01:00
mintsuki
d718ff1c1a host/limine: Add LBA to CHS conversion code for GPT to MBR conversion 2025-03-07 19:22:52 +01:00
mintsuki
4a9b8fe90b host/limine: Perform automatic conversion of GPT to MBR for ISOHYBRIDs if possible 2025-03-07 07:16:13 +01:00
mintsuki
375360f4b9 build: Misc improvements wrt variable passing 2024-11-28 00:42:36 +01:00
mintsuki
c844c61363 build: Get rid of ?= usage and USER_VARIABLE 2024-11-22 20:29:16 +01:00
mintsuki
87192de295 build: Remove files named 'Makefile' or 'GNUmakefile' as that confuses people 2024-08-17 12:42:25 +02:00
Keegan Saunders
d9a2fb95a9 Add LoongArch support 2024-07-31 23:05:27 -04:00
mintsuki
f3d5c86aea host/limine: Protect against overwriting beginning of partitions located too low 2024-07-11 02:26:50 +02:00
programmerlexi
2edb077ff8 host/limine: Fix limine not booting on some hardware (#378) 2024-06-29 16:18:39 +02:00
mintsuki
d41c5375d8 host/limine: Mark protective MBR wrapper partition as active on GPT 2024-06-24 00:00:19 +02:00
mintsuki
9e1f66507e host/limine: Simplify some redundantly written code 2024-06-23 23:52:47 +02:00
mintsuki
2cb61f4744 host/limine: Improve error reporting from uninstall() 2024-01-07 01:52:21 +01:00
mintsuki
d9d98dda3b host/limine: Do not 'guess' datadir for limine build out-of-tree 2023-12-16 06:03:48 +01:00
mintsuki
f481498535 host/limine: Use program_name in places where it should've been 2023-12-16 06:03:48 +01:00