4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Xxd crashes when using "xxd -b -c 110". (Debian bug 452789)
12 Solution: Allocate more memory. Fix check for maximum number of columns.
16 *** ../vim-7.1.166/src/xxd/xxd.c Thu May 10 19:07:42 2007
17 --- src/xxd/xxd.c Thu Nov 29 21:05:16 2007
21 #define TRY_SEEK /* attempt to use lseek, or skip forward by reading */
22 #define COLS 256 /* change here, if you ever need more columns */
23 ! #define LLEN (9 + (5*COLS-1)/2 + 2 + COLS)
25 char hexxa[] = "0123456789abcdef0123456789ABCDEF", *hexx = hexxa;
29 #define TRY_SEEK /* attempt to use lseek, or skip forward by reading */
30 #define COLS 256 /* change here, if you ever need more columns */
31 ! #define LLEN (11 + (9*COLS-1)/1 + COLS + 2)
33 char hexxa[] = "0123456789abcdef0123456789ABCDEF", *hexx = hexxa;
37 default: octspergrp = 0; break;
40 ! if (cols < 1 || (!hextype && (cols > COLS)))
42 fprintf(stderr, "%s: invalid number of columns (max. %d).\n", pname, COLS);
45 default: octspergrp = 0; break;
48 ! if (cols < 1 || ((hextype == HEX_NORMAL || hextype == HEX_BITS)
51 fprintf(stderr, "%s: invalid number of columns (max. %d).\n", pname, COLS);
58 e = (e < 64) ? '.' : etoa64[e-64];
59 + /* When changing this update definition of LLEN above. */
60 l[11 + (grplen * cols - 1)/octspergrp + p] =
63 *** ../vim-7.1.166/src/version.c Sat Dec 1 21:12:23 2007
64 --- src/version.c Mon Dec 3 21:30:31 2007
68 { /* Add new patch number below this line */
74 hundred-and-one symptoms of being an internet addict:
75 178. You look for an icon to double-click to open your bedroom window.
77 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
78 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
79 \\\ download, build and distribute -- http://www.A-A-P.org ///
80 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///