bash-4.2-022.patch 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. BASH PATCH REPORT
  2. =================
  3. Bash-Release: 4.2
  4. Patch-ID: bash42-022
  5. Bug-Reported-by: Gregory Margo <gmargo@pacbell.net>
  6. Bug-Reference-ID: <20110727174529.GA3333@pacbell.net>
  7. Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2011-07/msg00102.html
  8. Bug-Description:
  9. The return value from lseek is `off_t'. This can cause corrupted return
  10. values when the file offset is greater than 2**31 - 1.
  11. Patch (apply with `patch -p0'):
  12. *** ../bash-4.2-patched/lib/sh/zread.c Mon Mar 2 08:54:45 2009
  13. --- ./lib/sh/zread.c Thu Jul 28 18:16:53 2011
  14. ***************
  15. *** 161,166 ****
  16. int fd;
  17. {
  18. ! off_t off;
  19. ! int r;
  20. off = lused - lind;
  21. --- 161,165 ----
  22. int fd;
  23. {
  24. ! off_t off, r;
  25. off = lused - lind;
  26. ***************
  27. *** 169,173 ****
  28. r = lseek (fd, -off, SEEK_CUR);
  29. ! if (r >= 0)
  30. lused = lind = 0;
  31. }
  32. --- 168,172 ----
  33. r = lseek (fd, -off, SEEK_CUR);
  34. ! if (r != -1)
  35. lused = lind = 0;
  36. }
  37. *** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010
  38. --- ./patchlevel.h Thu Feb 24 21:41:34 2011
  39. ***************
  40. *** 26,30 ****
  41. looks for to find the patch level (for the sccs version string). */
  42. ! #define PATCHLEVEL 21
  43. #endif /* _PATCHLEVEL_H_ */
  44. --- 26,30 ----
  45. looks for to find the patch level (for the sccs version string). */
  46. ! #define PATCHLEVEL 22
  47. #endif /* _PATCHLEVEL_H_ */