mirror of the now-defunct rocklinux.org
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.

61 lines
1.8 KiB

  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 3.2
  4. Patch-ID: bash32-009
  5. Bug-Reported-by: James.M.Botte@lowes.com
  6. Bug-Reference-ID: <BA9FF90F7E5B424998F98EDA9F1F94BE01FA9853@msexchdb01.lowes.com>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2006-12/msg00000.html
  8. Bug-Description:
  9. When using its built-in replacement for snprintf/asprintf, bash does not
  10. treat the %x, %X, and %o format specifiers as unsigned numbers.
  11. Patch:
  12. *** bash-3.2-patched/lib/sh/snprintf.c Mon Nov 13 08:58:52 2006
  13. --- lib/sh/snprintf.c Wed Dec 6 11:15:04 2006
  14. ***************
  15. *** 669,673 ****
  16. sd = d; /* signed for ' ' padding in base 10 */
  17. ! flags = (*p->pf == 'u' || *p->pf == 'U') ? FL_UNSIGNED : 0;
  18. if (*p->pf == 'X')
  19. flags |= FL_HEXUPPER;
  20. --- 674,679 ----
  21. sd = d; /* signed for ' ' padding in base 10 */
  22. ! flags = 0;
  23. ! flags = (*p->pf == 'x' || *p->pf == 'X' || *p->pf == 'o' || *p->pf == 'u' || *p->pf == 'U') ? FL_UNSIGNED : 0;
  24. if (*p->pf == 'X')
  25. flags |= FL_HEXUPPER;
  26. ***************
  27. *** 739,743 ****
  28. sd = d; /* signed for ' ' padding in base 10 */
  29. ! flags = (*p->pf == 'u' || *p->pf == 'U') ? FL_UNSIGNED : 0;
  30. if (*p->pf == 'X')
  31. flags |= FL_HEXUPPER;
  32. --- 745,749 ----
  33. sd = d; /* signed for ' ' padding in base 10 */
  34. ! flags = (*p->pf == 'x' || *p->pf == 'X' || *p->pf == 'o' || *p->pf == 'u' || *p->pf == 'U') ? FL_UNSIGNED : 0;
  35. if (*p->pf == 'X')
  36. flags |= FL_HEXUPPER;
  37. *** bash-3.2/patchlevel.h Thu Apr 13 08:31:04 2006
  38. --- patchlevel.h Mon Oct 16 14:22:54 2006
  39. ***************
  40. *** 26,30 ****
  41. looks for to find the patch level (for the sccs version string). */
  42. ! #define PATCHLEVEL 8
  43. #endif /* _PATCHLEVEL_H_ */
  44. --- 26,30 ----
  45. looks for to find the patch level (for the sccs version string). */
  46. ! #define PATCHLEVEL 9
  47. #endif /* _PATCHLEVEL_H_ */