|
Karsten Hopp |
a65c99 |
To: vim-dev@vim.org
|
|
Karsten Hopp |
a65c99 |
Subject: Patch 7.1.167
|
|
Karsten Hopp |
a65c99 |
Fcc: outbox
|
|
Karsten Hopp |
a65c99 |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
a65c99 |
Mime-Version: 1.0
|
|
Karsten Hopp |
a65c99 |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
a65c99 |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
a65c99 |
------------
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
Patch 7.1.167
|
|
Karsten Hopp |
a65c99 |
Problem: Xxd crashes when using "xxd -b -c 110". (Debian bug 452789)
|
|
Karsten Hopp |
a65c99 |
Solution: Allocate more memory. Fix check for maximum number of columns.
|
|
Karsten Hopp |
a65c99 |
Files: src/xxd/xxd.c
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
*** ../vim-7.1.166/src/xxd/xxd.c Thu May 10 19:07:42 2007
|
|
Karsten Hopp |
a65c99 |
--- src/xxd/xxd.c Thu Nov 29 21:05:16 2007
|
|
Karsten Hopp |
a65c99 |
***************
|
|
Karsten Hopp |
a65c99 |
*** 212,218 ****
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
#define TRY_SEEK /* attempt to use lseek, or skip forward by reading */
|
|
Karsten Hopp |
a65c99 |
#define COLS 256 /* change here, if you ever need more columns */
|
|
Karsten Hopp |
a65c99 |
! #define LLEN (9 + (5*COLS-1)/2 + 2 + COLS)
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
char hexxa[] = "0123456789abcdef0123456789ABCDEF", *hexx = hexxa;
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
--- 212,218 ----
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
#define TRY_SEEK /* attempt to use lseek, or skip forward by reading */
|
|
Karsten Hopp |
a65c99 |
#define COLS 256 /* change here, if you ever need more columns */
|
|
Karsten Hopp |
a65c99 |
! #define LLEN (11 + (9*COLS-1)/1 + COLS + 2)
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
char hexxa[] = "0123456789abcdef0123456789ABCDEF", *hexx = hexxa;
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
***************
|
|
Karsten Hopp |
a65c99 |
*** 590,596 ****
|
|
Karsten Hopp |
a65c99 |
default: octspergrp = 0; break;
|
|
Karsten Hopp |
a65c99 |
}
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
! if (cols < 1 || (!hextype && (cols > COLS)))
|
|
Karsten Hopp |
a65c99 |
{
|
|
Karsten Hopp |
a65c99 |
fprintf(stderr, "%s: invalid number of columns (max. %d).\n", pname, COLS);
|
|
Karsten Hopp |
a65c99 |
exit(1);
|
|
Karsten Hopp |
a65c99 |
--- 590,597 ----
|
|
Karsten Hopp |
a65c99 |
default: octspergrp = 0; break;
|
|
Karsten Hopp |
a65c99 |
}
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
! if (cols < 1 || ((hextype == HEX_NORMAL || hextype == HEX_BITS)
|
|
Karsten Hopp |
a65c99 |
! && (cols > COLS)))
|
|
Karsten Hopp |
a65c99 |
{
|
|
Karsten Hopp |
a65c99 |
fprintf(stderr, "%s: invalid number of columns (max. %d).\n", pname, COLS);
|
|
Karsten Hopp |
a65c99 |
exit(1);
|
|
Karsten Hopp |
a65c99 |
***************
|
|
Karsten Hopp |
a65c99 |
*** 750,755 ****
|
|
Karsten Hopp |
a65c99 |
--- 751,757 ----
|
|
Karsten Hopp |
a65c99 |
}
|
|
Karsten Hopp |
a65c99 |
if (ebcdic)
|
|
Karsten Hopp |
a65c99 |
e = (e < 64) ? '.' : etoa64[e-64];
|
|
Karsten Hopp |
a65c99 |
+ /* When changing this update definition of LLEN above. */
|
|
Karsten Hopp |
a65c99 |
l[11 + (grplen * cols - 1)/octspergrp + p] =
|
|
Karsten Hopp |
a65c99 |
#ifdef __MVS__
|
|
Karsten Hopp |
a65c99 |
(e >= 64)
|
|
Karsten Hopp |
a65c99 |
*** ../vim-7.1.166/src/version.c Sat Dec 1 21:12:23 2007
|
|
Karsten Hopp |
a65c99 |
--- src/version.c Mon Dec 3 21:30:31 2007
|
|
Karsten Hopp |
a65c99 |
***************
|
|
Karsten Hopp |
a65c99 |
*** 668,669 ****
|
|
Karsten Hopp |
a65c99 |
--- 668,671 ----
|
|
Karsten Hopp |
a65c99 |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
a65c99 |
+ /**/
|
|
Karsten Hopp |
a65c99 |
+ 167,
|
|
Karsten Hopp |
a65c99 |
/**/
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
--
|
|
Karsten Hopp |
a65c99 |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
a65c99 |
178. You look for an icon to double-click to open your bedroom window.
|
|
Karsten Hopp |
a65c99 |
|
|
Karsten Hopp |
a65c99 |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
a65c99 |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
a65c99 |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
a65c99 |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|