You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

543467-thread-segfault.patch 752B

1234567891011121314151617181920212223242526272829
  1. From: Antonio Radici <antonio@debian.org>
  2. Date: Thu, 27 Feb 2014 16:38:41 +0100
  3. Subject: 543467-thread-segfault
  4. Added a patch to prevent segfault when Ctrl+R is hit
  5. on a malformed group of messages.
  6. (see upstream bug http://bugs.mutt.org/3335)
  7. Gbp-Pq: Topic upstream
  8. ---
  9. flags.c | 5 ++++-
  10. 1 file changed, 4 insertions(+), 1 deletion(-)
  11. diff --git a/flags.c b/flags.c
  12. index 5309bb7..133fa35 100644
  13. --- a/flags.c
  14. +++ b/flags.c
  15. @@ -303,7 +303,10 @@ void mutt_tag_set_flag (int flag, int bf)
  16. int mutt_thread_set_flag (HEADER *hdr, int flag, int bf, int subthread)
  17. {
  18. THREAD *start, *cur = hdr->thread;
  19. -
  20. +
  21. + if ( !hdr->thread )
  22. + return (-1);
  23. +
  24. if ((Sort & SORT_MASK) != SORT_THREADS)
  25. {
  26. mutt_error _("Threading is not enabled.");