Re: possible bug

Daniele Forsi <[email protected]>
Newsgroups gmane.linux.drivers.gnokii
Message-ID <CAN_we7P+KEAFr16SmHd0_Sh=FrAzfCv0VXkkwMwqBTXFRLpb9g@mail.gmail.com>
2012/10/23 Jon Berg:

> Do you need me to do anything additional to investigate this further?
> I kind of need to use this phone so I would have to delete all the
> messages to get it to work again.

before deleting your messages can you try to read one of those that
break smsd using both model=series40 and model=AT so that we can
compare them?

after that you may delete your messages because I can do all the tests
hacking NK6510_GetSMS() by replacing its contents with the following
code, so that gnokii --getsms will always read this SMS:
{
	unsigned char *buf =
"015500030001010200030000000100306400082101919071908000000003820c01080b912143658709f1820c020807913333333333f3800801002d000000";
	unsigned char message[0x003e];

	hex2bin(message, buf, strlen(buf));

	return NK6510_IncomingFolder(0x14, message, 0x003e, data, state);
}

the problem is that the 2d towards the end of the frame is taken as
the length of the following UDH data (which in fact is not there) and
a static buffer is overflowed while trying to copy it; strange is that
the code to handle that kind of frame doesn't seem to have changed
much since 2002
-- 
Daniele Forsi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.