Commit Graph

282 Commits

Author SHA1 Message Date
Vitaly Cheptsov
0030ea9481
Fix findPattern logic when pattern is at the end of the data
references #404
2024-10-09 23:36:23 +03:00
Jeremy Brown
c5508535c1 Defined ACCESSPERMS for musl 2024-02-20 12:19:07 -08:00
Nikolaj Schlej
0a88da1410 Update guids.csv 2023-11-02 12:48:44 -07:00
Nikolaj Schlej
6f9a4c0d46 Fix off-by-one error in parsing IFWI partition table
Fixes #376
2023-11-02 12:44:09 -07:00
William Leara
166c797a20 add Micron XM25RH128C
Add support for the Micron XM25RH128C SPI flash part.  This is a 128Mb part with DevID0 = 0x43, and DevID1 = 0x18.
2023-10-24 22:15:42 -07:00
William Leara
0e11189644 fix a few misspellings 2023-10-13 21:46:53 -07:00
Nikolaj Schlej
1cba371cc2 Update guids.csv 2023-10-06 13:30:20 -07:00
Kamay Xutax
4992474e83 Fix CPD Extension offset (reverts 29915ca)
The CPD Extensions should have the header size added as an
offset instead.
2023-08-19 15:15:51 -07:00
xutaxkamay
29915ca620 Fix CPD Manifest's partition offset
The header size needs to be probably added here, maybe it was forgotten ?

This is needed in order to get the proper base address of a CPD_EXT_IFWI_PARTITION_MANIFEST structure in the image for example in that specific case.

If I don't do this, it points to a meaningless address.

Let me know if there can be any issues with this.
2023-08-18 09:11:13 -07:00
chunqing286
4a41c33596 Regenerate cpp source files with 2023-08-04 13:07:11 -07:00
chunqing286
b2a8952c71 Fix for AMI NVAR parser based on kaitai struct by modifing 1 line (line 128) for ami_nvar.ksy. 2023-08-04 13:07:11 -07:00
yeggor
036be8d3bc add additional check for BPDT store size 2023-07-18 15:59:14 -07:00
Nikolaj Schlej
a7cf9cc3e3 Add definitions for yet another AMD-specific Zlib-compressed file and section 2023-06-25 11:58:37 -07:00
Nikolaj Schlej
2b8b00d5b0 Temporary regression fix
Reverting a check added in A66, fixing #368
2023-06-23 21:12:14 -07:00
Nikolaj Schlej
b6cdc9f484 Add support for long paths in Windows 10+ 2023-06-19 18:49:53 -07:00
Nikolaj Schlej
031bd4f734 Provide separate filesystem.cpp 2023-06-19 12:59:23 -07:00
Nikolaj Schlej
91fb7cdc83 Update GUID database
https://fwupd.org/lvfs/shards/export/csv
2023-06-07 05:52:19 -07:00
Nikolaj Schlej
ce92b98527 Restore sorted state of guids.csv 2023-04-20 20:26:21 -07:00
Tody
88fa2d2a47 Update guids.csv
update TpmNvmeSupport GUID
2023-04-19 09:34:18 -07:00
yeggor
d9e1fe5859 Check that volumeHeader->ExtHeaderOffset is aligned to 4 bytes 2023-03-16 16:47:51 -07:00
yeggor
2b876e2cc3 Add check for volumeHeader->ExtHeaderOffset in FfsParser::parseVolumeHeader to prevent OOB access 2023-03-16 16:47:51 -07:00
yeggor
7a25a52427 Fix OOB access with volume.mid(headerSize) 2023-03-16 16:47:51 -07:00
yeggor
ea38ab3696 Fix nullptr deref, OOB access to volumeHeader and tempHeader by checking volumeHeader->HeaderLength 2023-03-16 16:47:51 -07:00
yeggor
9c6786a27b Fix 2 OOB access crashes in FfsParser::findNextRawAreaItem 2023-03-16 16:47:51 -07:00
yeggor
6875968d97 Check partitions size before erasing to avoid memory corruption 2023-03-16 16:47:51 -07:00
Nikolaj Schlej
aa3e790fb1 Revert "Fix FfsParser issues found by fuzzing"
This reverts commit b8567d32cc.
2023-03-12 08:49:19 -07:00
Nikolaj Schlej
b8567d32cc Fix FfsParser issues found by fuzzing
Resolve alignment issue with guidToUstring
2023-02-26 16:27:27 -08:00
Nikolaj Schlej
75bf036137 Switch to C++11 for Kaitai-generated parsers 2023-02-26 13:23:25 -08:00
Nikolaj Schlej
6c695c12a7 Fix meson builds 2023-02-19 12:38:35 -08:00
Nikolaj Schlej
7eb565d788 Switch AMI NVAR parser to Kaitai 2023-02-19 12:24:20 -08:00
Nikolaj Schlej
2d1ebcc11b Fallback to RawArea parsing in case IntelDescriptor or Capsule parsing was unsuccesful 2023-02-18 08:28:15 -08:00
Nikolaj Schlej
6f9dc0ab88 Fix Unicode search 2023-02-16 22:11:39 -08:00
Nikolaj Schlej
745f4b69f2 Fix an issue spotted by SonarCloud 2023-02-11 21:12:01 -08:00
Nikolaj Schlej
944133caa7 Automatically select dark colors for BootGuard markings in dark mode 2023-02-11 21:05:18 -08:00
Nikolaj Schlej
ef7ceefa41 Temporary change UI style for Qt6-based Windows build of UEFITool to support dark mode 2023-02-11 20:19:32 -08:00
Nikolaj Schlej
33c25e8255 Add AMI v3 protected ranges hash file support 2023-02-05 20:30:20 -08:00
Nikolaj Schlej
7a161f577a Fix truncation issue with 64-bit contants on Windows, update Kaitai patch script 2023-02-03 23:53:10 -08:00
Nikolaj Schlej
c9939e23ec Fix possible unaligned access to UCS2 strings 2023-01-31 20:15:12 -08:00
Nikolaj Schlej
b649b98cb5 Add support for Clang sanitizers for UEFITool
Only applied to CMake Debug builds, useful for debugging undefined behavior.
2023-01-31 17:48:20 -08:00
Nikolaj Schlej
2467b48802 Attempt to fix an issue spotted by SonarCloud 2023-01-29 16:52:08 -08:00
Nikolaj Schlej
03d71d6f9f Update Intel FIT definitions accodring to FIT specification v1.4 2023-01-29 15:58:43 -08:00
Nikolaj Schlej
66e9f95dc3 Replace unneeded BOOLEAN with bool 2023-01-29 15:13:37 -08:00
Nikolaj Schlej
507f884635 Fix compressed flag not being applied to the items inside GZip and Zlib GUIDed sections 2023-01-28 21:56:01 -08:00
Nikolaj Schlej
1adff58591 Update guids.csv
Add GUIDs for Intel BG BootPolicy and KeyManifest
2023-01-12 21:51:42 -08:00
Mike Beaton
eab62138aa guids.csv - fix additional [g|G][A-Z] errors 2023-01-06 19:14:51 +03:00
Nikolaj Schlej
19ab6076c4
Update ffsparser.cpp
Fix an issue with parsing CRC32 sections introduced in the previous commit
2023-01-03 01:17:41 -08:00
Mike Beaton
1b143c89e6
Fix minor issues in guids.csv (#328)
- Fix DebuSupport error from 0fb88ab760
- Add GUIDs
2023-01-02 18:08:01 +03:00
Nikolaj Schlej
7337f15ec9 Implement parsing for AMD-specific Zlib-compressed GUIDed section
Fix incorrect overflow check in parsing volume block map
2022-12-23 22:49:37 -08:00
Klemens Nanni
6e7b46d791 Fix OpenBSD build, use swap16(3) from <endian.h>
bswap*() do not exist on OpenBSD.
2022-11-27 10:22:38 -08:00
yeggor
47c8938c7e Add additional check for entryHeader->Size in NvramParser::parseEvsaStoreBody to avoid uint32 underflow 2022-11-15 18:08:25 -08:00