To: vim-dev@vim.org Subject: Patch 5.8.001 Fcc: outbox From: Bram Moolenaar ------------ Patch 5.8.001 Problem: MS-DOS and MS-Windows: Using a special key after CTRL-V x causes a crash. Solution: Check the argument of isxdidit() to fall between 0 and 255. Files: src/edit.c *** ../vim-5.8/src/edit.c Thu May 31 18:18:00 2001 --- src/edit.c Mon Jun 4 21:51:48 2001 *************** *** 3106,3112 **** { if (hexmode) { ! if (!vim_isdigit(nc) && !isxdigit(nc)) break; nc = TO_LOWER(nc); if (nc >= 'a') --- 3106,3113 ---- { if (hexmode) { ! /* Careful: isxdigit() on Win32 can handle only 0-255 */ ! if (nc < 0 || nc > 255 || (!vim_isdigit(nc) && !isxdigit(nc))) break; nc = TO_LOWER(nc); if (nc >= 'a') *** ../vim-5.8/src/version.c Thu May 31 18:17:59 2001 --- src/version.c Mon Jun 4 21:52:09 2001 *************** *** 439,440 **** --- 439,442 ---- { /* Add new patch number below this line */ + /**/ + 1, /**/ -- hundred-and-one symptoms of being an internet addict: 99. The hum of a cooling fan and the click of keys is comforting to you. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///