The metadata pointer is being dereferenced in mc_FLE2IndexedEncryptedValueV2_destroy() without first checking if it is NULL. A segmentation fault can occur here if the mc_FLE2IndexedEncryptedValueV2_t edge_count member were set to a value greater than zero, but the metadata array was never allocated due to an error during parsing, for example.
Fix possible segmentation fault in mc_FLE2IndexedEncryptedValueV2_destroy
- Assignee:
-
Erwin Pe
- Reporter:
-
Erwin Pe
- Votes:
-
0 Vote for this issue - Watchers:
-
1 Start watching this issue
- Created:
- Updated:
- Resolved: