Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
fixed read overflow in arabic mode
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dominique Pellé  
View profile  
 More options Nov 8, 3:17 pm
From: Dominique Pellé <dominique.pe...@gmail.com>
Date: Sun, 8 Nov 2009 21:17:40 +0100
Local: Sun, Nov 8 2009 3:17 pm
Subject: [patch] fixed read overflow in arabic mode

Hi

While testing Vim-7.2.284 with arabic mode, I noticed the
following error with Valgrind. Steps to reproduce are too
complex to describe here, but I can reproduce all the time:

==31786== Conditional jump or move depends on uninitialised value(s)
==31786==    at 0x8120517: utfc_ptr2char (mbyte.c:1612)
==31786==    by 0x816EDFB: screen_puts_len (screen.c:6416)
==31786==    by 0x8103538: t_puts (message.c:2322)
==31786==    by 0x810305A: msg_puts_display (message.c:2079)
==31786==    by 0x81029CC: msg_puts_attr_len (message.c:1838)
==31786==    by 0x8102009: msg_outtrans_len_attr (message.c:1402)
==31786==    by 0x8101D31: msg_outtrans_len (message.c:1291)
==31786==    by 0x80BB20A: draw_cmdline (ex_getln.c:2677)
==31786==    by 0x80BBF64: redrawcmd (ex_getln.c:3163)
==31786==    by 0x80C1146: ex_window (ex_getln.c:6243)
==31786==    by 0x80B7EA3: getcmdline (ex_getln.c:736)
==31786==    by 0x812D672: nv_search (normal.c:6138)
==31786==    by 0x8125554: normal_cmd (normal.c:1188)
==31786==    by 0x80E7A84: main_loop (main.c:1204)
==31786==    by 0x80E7577: main (main.c:948)

Attached patch fixes it by using utfc_ptr2char_len(...) rather
than utfc_ptr2char(...)  (as was already done a few lines above
in the same function).

Cheers
-- Dominique

  fixed-read-overflow-screen.c-7.2.284.patch
< 1K Download

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Bram Moolenaar  
View profile  
 More options Nov 9, 1:43 pm
From: Bram Moolenaar <B...@Moolenaar.net>
Date: Mon, 09 Nov 2009 19:43:04 +0100
Local: Mon, Nov 9 2009 1:43 pm
Subject: Re: [patch] fixed read overflow in arabic mode

Thanks!

--
"I love deadlines.  I especially like the whooshing sound they
make as they go flying by."
                         -- Douglas Adams

 /// Bram Moolenaar -- B...@Moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google