Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rsto
Copy link
Member

@rsto rsto commented Feb 18, 2025

Fixes a bug where an unescaped backslash at the end of a value caused the vCard parser attempt to free the multi-valued TEXT buffer, even if that had not been allocated.

Rather than rejecting a TEXT property with a trailing backslash as invalid, the parser now pads that backslash with a second backslash, preserving the backslash character effectively.

@rsto rsto requested review from ksmurchison and wolfsage February 18, 2025 13:06
Copy link
Member

@brong brong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks heaps better, thanks. It means we do sensible things for un-sensible input!

Fixes a bug where an unescaped backslash at the end of a value
caused the vCard parser attempt to free the multi-valued TEXT
buffer, even if that had not been allocated.

Rather than rejecting a TEXT property with a trailing backslash
as invalid, the parser now pads that backslash with a second
backslash, preserving the backslash character effectively.
@rsto rsto force-pushed the libicalvcard_fix_escaped_newline branch from 1ec8bbb to d79bca6 Compare February 18, 2025 14:04
@rsto rsto merged commit d28dea6 into cyrusimap:cyrus Feb 18, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants