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