Description
SIGSEGV possible through sentry_envelope_write_to_path
When does the problem happen
Environment
macOS, but probably doesn't matter.
Steps To Reproduce
If you provide a path using a directory that doesn't exist, then sentry__filewriter_new returns NULL. The sentry_envelope_write_to_path never checks for a null result and attempts to use the fw.
Description
SIGSEGV possible through
sentry_envelope_write_to_pathWhen does the problem happen
Environment
macOS, but probably doesn't matter.
Steps To Reproduce
If you provide a path using a directory that doesn't exist, then
sentry__filewriter_newreturns NULL. Thesentry_envelope_write_to_pathnever checks for a null result and attempts to use thefw.