LCDproc development and user support list

Text archives Help

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

Chronological Thread 
  • From: bsdfan at (Markus Dolze)
  • Subject: [Lcdproc] [PATCH] Missing NULL malloc() check in server/menuitem.c
  • Date: Mon, 25 May 2009 00:41:07 +0200

Andre Guibert de Bruet wrote:
> 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,


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.


Archive powered by MHonArc 2.6.18.

Top of page