46 Commits

Author SHA1 Message Date
yjh-styx
56e7a72e8a
Fix timestamping nested signatures (#266) 2023-05-14 22:32:56 +02:00
Max Bagryantsev
b61bcaac2e
Added DIFAT sectors support (#265) 2023-05-14 20:33:57 +02:00
olszomal
cb80c7d188 Initialize indata variable 2023-05-09 21:14:19 +02:00
olszomal
4199310cdf Fix indata resource leak, CID 1536896 2023-03-28 20:59:57 +02:00
Michał Trojnara
0204d04a25 Stop using tabs for indentation 2023-03-25 23:39:52 +01:00
Małgorzata Olszówka
0f51a06b8f
Separate common and format-dependent functions (#241) 2023-03-25 20:32:58 +01:00
olszomal
8e74a05b40 msi_calc_digest() with FILE_HEADER parameter 2023-02-26 21:12:07 +01:00
olszomal
11eb76d4f3 Use bio_hash_data() to compute a message digest value of a CAB file 2023-02-26 21:12:07 +01:00
olszomal
b0391244a6 New function bio_hash_data() 2023-02-26 21:12:07 +01:00
olszomal
ff8034af2e Use BIO_f_md instead of EVP_MD_CTX to compute a message digest value of the MSI file 2023-02-26 21:12:07 +01:00
olszomal
c29e14e697 Reset calculated message digest, CID 1519395 2023-01-20 10:53:49 +01:00
olszomal
4ec23dbaa5 Fix resource leak, CID 1519397 2023-01-19 17:51:35 +01:00
olszomal
695892b8bf Check sector location, CID 1519384 2023-01-19 17:50:27 +01:00
olszomal
fade782e58 Fix memory leak in stream_handle(), CID 1519397, 1519388, 1519402, 1519403 2023-01-18 21:16:34 +01:00
olszomal
95a8a9d9c1 Check stream data length, CID 1519393 2023-01-18 21:03:16 +01:00
olszomal
efbe570f27 Fix out-of-bounds read, CID 1519383 2023-01-15 22:35:48 +01:00
olszomal
acfece2c26 Fix dereference before null check, CID 1519396 2023-01-13 12:42:24 +01:00
olszomal
7aca21b481 Use big/little-endian conversion.
Improve checksum calculation.
2022-11-28 09:26:00 +01:00
Michał Trojnara
77e63fa0cb more type conversion fixes 2022-08-12 21:56:39 +02:00
olszomal
c143eff68f set a result of multiplication cast to the wider type 2022-08-12 20:45:31 +02:00
olszomal
1d0918c84d Squash -Wcast-qual and -Wconversion warnings 2022-07-29 18:42:35 +02:00
olszomal
157bb78a6e fix sprintf_s error stack corruption 2022-04-12 11:41:27 +02:00
olszomal
4731667c35 msi const names 2022-02-25 21:42:24 +01:00
olszomal
85594d9fb2 fix memory leak 2022-02-25 21:42:24 +01:00
olszomal
5f60cc6563 use msi_dirent_free() when failed to parse the MSI_DIRENT structure 2022-02-25 21:42:24 +01:00
olszomal
77b2b30d1f check Root Directory Entry's Name 2022-02-25 21:42:24 +01:00
Michał Trojnara
b774a56aa9 Floyd's cycle-finding algorithm 2022-02-23 22:35:40 +01:00
Michał Trojnara
6eaf0d9368 fixed MSI recursion loop detection 2022-02-22 18:56:20 +01:00
olszomal
d471b51db5 add only a non-stream child to the tree 2022-02-22 18:16:21 +01:00
olszomal
7b12abf21f NOSTREAM error handling 2022-02-22 18:16:21 +01:00
olszomal
5db237f242 Revert "verbose msi file verification errors"
This reverts commit 4eeeec32b44a64914fe90828854c5e9228322e0c.
2022-02-22 18:16:21 +01:00
Michał Trojnara
95c5a4451b simplify MSI parsing recursion 2022-02-22 10:08:15 +01:00
olszomal
f0207411b9 fix parse MSI_FILE_HDR struct 2022-02-21 19:24:32 +01:00
Michał Trojnara
aef958f880 modelines 2022-02-19 17:07:51 +01:00
Michał Trojnara
a6d3be739e detect recursion loop 2022-02-18 22:33:03 +01:00
olszomal
4eeeec32b4 verbose msi file verification errors 2022-02-18 18:54:48 +01:00
olszomal
289c345280 fix double free in msi_dirent_new() 2022-02-18 18:54:48 +01:00
olszomal
bdea1d1c2a fixed MSI_DIRENT structure parsing 2022-02-17 15:37:15 +01:00
olszomal
45fedd9e50 Fix more fuzzer errors 2022-02-11 23:32:27 +01:00
olszomal
e177ded9a5 Fix some fuzzer errors and VS2022 compiler warnings and errors 2022-02-04 17:35:46 +01:00
olszomal
3908e874a4 sizeof style 2021-04-25 21:38:57 +02:00
olszomal
a161efdb25 fix buffer overflow 2021-04-25 21:38:57 +02:00
olszomal
b01a2f5cd7 C89 standard compatibility 2021-04-25 21:38:57 +02:00
olszomal
b6e6165782 moral rights 2021-04-25 21:38:57 +02:00
olszomal
758003156e MSI file signing support
DIFAT sectors are not supported
2021-04-25 21:38:57 +02:00
olszomal
4f590989ce remove libgsf library dependency
MSI file verify and remove-signature support
2021-04-25 21:38:57 +02:00