Messages in this thread | | | Date | Thu, 14 Jun 2012 15:05:25 +0100 | From | Alan Cox <> | Subject | Re: [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>
| |