Skip to content

Panic in mailparse #6581

@link2xt

Description

@link2xt

The error is Abort message: 'assertion failed: ix_start < line.len()' in the log https://support.delta.chat/t/qq-email-account-encountered-a-crash/3599/2

The crash is this line:
https://github.com/staktrace/mailparse/blob/d6494b98a8d0baf14a4574c7a8f642a66d7674e6/src/lib.rs#L123

In the core itself we have eliminated most of the indexing/slicing and don't introduce more: #6214

I file the issue here because we need to fix the bug in mailparse, update it an have a test in the core reproducing the crash. Upstream mailparse issue staktrace/mailparse#130
Upstream fix PR is at staktrace/mailparse#131

Core version in the log is 1.155.5. It uses mailparse 0.16.0 in Cargo.lock.

Metadata

Metadata

Assignees

Labels

bugSomething is not working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions