Commit fa4e593
authored
### Rationale for this change
Currently, if given an encrypted file (whether valid or invalid), the Parquet fuzz target will bail out almost immediately since it does not have any decryption key configured. This prevents the fuzzer from covering any significant part of the Parquet encryption codebase.
### What changes are included in this PR?
1. Improve the fuzz target so as to be able to read encrypted files present in the seed corpus (except those that require a external AAD or external key material)
2. Generate encrypted files in the seed corpus that the fuzz target is able to successfully decrypt
### Are these changes tested?
In expanded unit test, and locally.
### Are there any user-facing changes?
No.
* GitHub Issue: #48335
Authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
1 parent 85ea78d commit fa4e593
File tree
14 files changed
+618
-312
lines changed- cpp/src
- arrow/util
- parquet
- arrow
- encryption
14 files changed
+618
-312
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
| 154 | + | |
154 | 155 | | |
155 | 156 | | |
156 | 157 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
5830 | 5831 | | |
5831 | 5832 | | |
5832 | 5833 | | |
| 5834 | + | |
| 5835 | + | |
5833 | 5836 | | |
| 5837 | + | |
5834 | 5838 | | |
5835 | 5839 | | |
5836 | 5840 | | |
5837 | 5841 | | |
5838 | 5842 | | |
5839 | 5843 | | |
5840 | | - | |
| 5844 | + | |
5841 | 5845 | | |
5842 | 5846 | | |
| 5847 | + | |
| 5848 | + | |
| 5849 | + | |
| 5850 | + | |
| 5851 | + | |
| 5852 | + | |
| 5853 | + | |
| 5854 | + | |
| 5855 | + | |
| 5856 | + | |
| 5857 | + | |
| 5858 | + | |
| 5859 | + | |
| 5860 | + | |
| 5861 | + | |
5843 | 5862 | | |
5844 | 5863 | | |
5845 | 5864 | | |
5846 | 5865 | | |
5847 | 5866 | | |
5848 | | - | |
5849 | | - | |
5850 | | - | |
5851 | | - | |
5852 | | - | |
5853 | | - | |
5854 | | - | |
5855 | | - | |
| 5867 | + | |
| 5868 | + | |
| 5869 | + | |
| 5870 | + | |
| 5871 | + | |
| 5872 | + | |
| 5873 | + | |
| 5874 | + | |
| 5875 | + | |
| 5876 | + | |
| 5877 | + | |
| 5878 | + | |
| 5879 | + | |
| 5880 | + | |
5856 | 5881 | | |
5857 | 5882 | | |
5858 | 5883 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
0 commit comments