gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: buffer overflow


From: Pawel Kot
Subject: Re: buffer overflow
Date: Mon, 19 Mar 2007 21:58:44 +0100

Hi,

On 2/19/07, Baurzhan Ismagulov <address@hidden> wrote:
I'm trying to copy my contacts from 6310i to K750i. I was able to read
them from the old phone, but writing to the new one caused a SIGSEGV.

I've seen that char_ucs2_encode scans four times as many characters as
necessary, overwriting the stack. So, attached is my first attempt to
fix the problem.

The patch has some issues (AT_WritePhonebook needs rewriting), I'll fix
them later. Please note that I haven't explicitly tested
char_ascii_encode, char_hex_encode, and memcpy parts in at_encode.

Please let me know what you think about the patch.

I did the code review. And it looks really good. Now I need to do some
testing. Hope to commit it in few days.

take care,
pkot
--
Pawel Kot




reply via email to

[Prev in Thread] Current Thread [Next in Thread]