lkml.org 
[lkml]   [2012]   [Jun]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] i2o: avoid returning pointer to a local array in chtostr()
On Thu, 14 Jun 2012 14:51:42 +0200
Kamil Dudka <kdudka@redhat.com> wrote:

> The pointer returned from chtostr() points to an array which is no longer valid
> when being used in the calling function. Although it may work, the behavior is
> undefined. Detected by cppcheck.
>
> Signed-off-by: Kamil Dudka <kdudka@redhat.com>

Acked-by: Alan Cox <alan@linux.intel.com>



\
 
 \ /
  Last update: 2012-06-14 17:01    [W:0.024 / U:0.228 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site