LCDproc development and user support list

Text archives Help


[Lcdproc] [PATCH] Missing NULL malloc() check in server/menuitem.c


Chronological Thread 
  • From: andy at siliconlandmark.com (Andre Guibert de Bruet)
  • Subject: [Lcdproc] [PATCH] Missing NULL malloc() check in server/menuitem.c
  • Date: Mon, 25 May 2009 10:06:08 -0400

On May 24, 2009, at 6:41 PM, Markus Dolze wrote:

> Andre Guibert de Bruet wrote:
>>
>> I found an instance in server/menuitem.c where the return value of
>> malloc() is not checked before the pointer is used in a call to
>> strncpy(). The attached patch addresses the issue.
>>
>> Could it be committed upon review?
>>
>> Cheers,
>
> committed this to: HEAD
> Merge to: stable-0-5-x: pending
> Merge to: lcdproc-0-5-3: pending
>
> looking closer at menuitem.c there are some more malloc which are
> not checked before used -> put this on the todo list.

I have some time today that I will use to look into this. Stay tuned.

Cheers,

/* Andre Guibert de Bruet * 436f 6465 2070 6f65 742e 2042 6974 206a */
/* Managing Partner * 6f63 6b65 792e 2053 7973 4164 6d69 6e2e */
/* GSM: +1 734 846 8758 * 2055 4e49 5820 736c 6575 7468 2e00 0000 */
/* WWW: siliconlandmark.com * C/C++, Java, Perl, PHP, SQL, XHTML, XML */






Archive powered by MHonArc 2.6.18.

Top of page