svashisht / rpms / bash

Forked from rpms/bash 4 years ago
Clone

Blame SOURCES/bash42-022

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