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: Sun, 24 May 2009 12:42:55 -0400

Hi,

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,

/* 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 */


-------------- next part --------------
A non-text attachment was scrubbed...
Name: menuitem.diff
Type: application/octet-stream
Size: 674 bytes
Desc: not available
URL:
<http://lists.omnipotent.net/pipermail/lcdproc/attachments/20090524/99d4f06d/attachment.obj>




Archive powered by MHonArc 2.6.18.

Top of page