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

String that makes email_reply_parser hang forever(?) #65

Open
indigoviolet opened this Issue Feb 15, 2018 · 0 comments

Comments

Projects
None yet
1 participant
@indigoviolet

indigoviolet commented Feb 15, 2018

bad_text = <<~EOF
          >> I use Virtru to send and receive encrypted email. Click the "unlock
          >> message" button below to decrypt and read my message. If you have any
          >> questions, please contact me.
          >> Unlock Message
          >> <https://secure.virtru.com/start/?c=barebones&t=barebones-1-0-2&s=&p=0df370ca-d15d-4cb8-816f-cb598187af#v=3.0.0&d=https%3A%2F%2Fstorage.virtru.com%2Fapi%2Fpolicies%2F0df370ca-d15d-4cb8-816f-cb898187af%2Fdata%2Fmetadata&dk=IaLXRLoS0TX1W0uUofnFT0Ub7FyuCDKcgJqxFXXM%3D>
          >> [image: virtru] Virtru encrypts emails to keep private information safe.
          >> Learn more at Virtru.com <https://www.virtru.com>.
          >>
          >> Virtru Secure Email: v1.4.0
          >>
          >> Message ID: 0df370ca-d15d-4cb8-816f-81598187af
          >>
          >> Virtru Metadata: eyJ2ZXJzaW9uIjoiMS40LjAiLCJtZXNzYWdlSWQiOiIwZGYzNzBjYS1kMTVkLTRjYjgtODE2Zi1jYjgxNTk4MTg3YWYiLCJyZW1vdGVDb250ZW50TGluayI6Imh0dHBzOi8vc2VjdXJlLnZpcnRydS5jb20vc3RhcnQvP2M9YmFyZWJvbmVzJnQ9YmFyZWJvbmVzLTEtMC0yJnM9Y2hyaXMlNDBkYXRhNGFtZXJpY2Eub3JnJnA9MGRmMzcwY2EtZDE1ZC00Y2I4LTgxNmYtY2I4MTU5ODE4N2FmI3Y9My4wLjAmZD1odHRwcyUzQSUyRiUyRnN0b3JhZ2UudmlydHJ1LmNvbSUmFwaSUyRnBvbGljaWVzJTJGMGRmMzcwY2EtZDE1ZC00Y2I4LTgxNmYtY2I4M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0Y1VHJvclpMRmFSdjN6V3Y3MVY0V1hSQjhmZlBRVS9WVGdIS1dIYkJ4Z0FrZXVGLzU0MFdUMExwTWJXcndMU0NVRmg1RU01cHZrakVGZ0thZlhuZUQ1VEIrTWF3dj
          >>
          >>
EOF

Timeout::timeout(2) { EmailReplyParser.read(bad_text) }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment