Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite imap decodeLine while loop #11

Open
weierophinney opened this issue Dec 31, 2019 · 0 comments
Open

Infinite imap decodeLine while loop #11

weierophinney opened this issue Dec 31, 2019 · 0 comments

Comments

@weierophinney
Copy link
Member

I just got a case where a line as follows: [LIST (\HasNoChildren) "/" {54} caused the while loop to run indefinitely.

I suspect ist this space character appended, which will cause the while (($pos = strpos($line, ' ')) !== false) { to run indefinitely? Not a nice thing to happen ^^ .

https://github.com/zendframework/zend-mail/blob/ece418b37aaf8a98c991d7f0c198408043a2172d/src/Protocol/Imap.php#L217

Im guessing {54} is a prefix to say that the next 54 Characters could contain special chars: (in my case Aufgaben/to dos/Landingpage "meine Immobilie im Alter". It probably meant the quotes.

It seams to work when I remove the space on L217.


Originally posted by @jensstalder at zendframework/zend-mail#240

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

No branches or pull requests

1 participant