gnokii-users
[Top][All Lists]
Advanced

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

[PATCH] memory allocation bug in cfgreader.c


From: Guido Falsi
Subject: [PATCH] memory allocation bug in cfgreader.c
Date: Wed, 14 Aug 2013 15:21:41 +0200
User-agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:17.0) Gecko/20130808 Thunderbird/17.0.8

Hi!

Mike Barnard Kwatampora <address@hidden>, A fellow FreeBSD user, reported me crashes when running gnokii as a user on his system.

He also was very helpful in debugging the problem.

After some digging I noticed that the realloc calls int eh function get_locations() have a wrong second argument, not accounting for the size of char *.

Attached is a simple patch which fixes this.

I hope my analysis is correct :)

--
Guido Falsi <address@hidden>

Attachment: realloc.diff
Description: Text document


reply via email to

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