rcolebaugh / rpms / bash

Forked from rpms/bash a year ago
Clone
287226
			     BASH PATCH REPORT
287226
			     =================
287226
287226
Bash-Release:	4.2
287226
Patch-ID:	bash42-022
287226
287226
Bug-Reported-by:	Gregory Margo <gmargo@pacbell.net>
287226
Bug-Reference-ID:	<20110727174529.GA3333@pacbell.net>
287226
Bug-Reference-URL:	http://lists.gnu.org/archive/html/bug-bash/2011-07/msg00102.html
287226
287226
Bug-Description:
287226
287226
The return value from lseek is `off_t'.  This can cause corrupted return
287226
values when the file offset is greater than 2**31 - 1.
287226
287226
Patch (apply with `patch -p0'):
287226
287226
*** ../bash-4.2-patched/lib/sh/zread.c	Mon Mar  2 08:54:45 2009
287226
--- lib/sh/zread.c	Thu Jul 28 18:16:53 2011
287226
***************
287226
*** 161,166 ****
287226
       int fd;
287226
  {
287226
!   off_t off;
287226
!   int r;
287226
  
287226
    off = lused - lind;
287226
--- 161,165 ----
287226
       int fd;
287226
  {
287226
!   off_t off, r;
287226
  
287226
    off = lused - lind;
287226
***************
287226
*** 169,173 ****
287226
      r = lseek (fd, -off, SEEK_CUR);
287226
  
287226
!   if (r >= 0)
287226
      lused = lind = 0;
287226
  }
287226
--- 168,172 ----
287226
      r = lseek (fd, -off, SEEK_CUR);
287226
  
287226
!   if (r != -1)
287226
      lused = lind = 0;
287226
  }
287226
*** ../bash-4.2-patched/patchlevel.h	Sat Jun 12 20:14:48 2010
287226
--- patchlevel.h	Thu Feb 24 21:41:34 2011
287226
***************
287226
*** 26,30 ****
287226
     looks for to find the patch level (for the sccs version string). */
287226
  
287226
! #define PATCHLEVEL 21
287226
  
287226
  #endif /* _PATCHLEVEL_H_ */
287226
--- 26,30 ----
287226
     looks for to find the patch level (for the sccs version string). */
287226
  
287226
! #define PATCHLEVEL 22
287226
  
287226
  #endif /* _PATCHLEVEL_H_ */