OpenSDE Packages Database (without history before r20070)
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.

44 lines
1.5 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mutt/CVE-2006-3242.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. diff -Nur mutt-1.4.2.1-orig/imap/browse.c mutt-1.4.2.1/imap/browse.c
  17. --- mutt-1.4.2.1-orig/imap/browse.c 2002-02-26 10:38:56.000000000 +0000
  18. +++ mutt-1.4.2.1/imap/browse.c 2006-06-29 09:58:07.000000000 +0000
  19. @@ -452,7 +452,7 @@
  20. if (*s == '\"')
  21. {
  22. s++;
  23. - while (*s && *s != '\"')
  24. + while (*s && *s != '\"' && n < sizeof (ns) - 1)
  25. {
  26. if (*s == '\\')
  27. s++;
  28. @@ -463,12 +463,14 @@
  29. s++;
  30. }
  31. else
  32. - while (*s && !ISSPACE (*s))
  33. + while (*s && !ISSPACE (*s) && n < sizeof (ns) - 1)
  34. {
  35. ns[n++] = *s;
  36. s++;
  37. }
  38. ns[n] = '\0';
  39. + if (n == sizeof (ns) - 1)
  40. + dprint (1, (debugfile, "browse_get_namespace: too long: [%s]\n", ns));
  41. /* delim? */
  42. s = imap_next_word (s);
  43. /* delimiter is meaningless if namespace is "". Why does