[PATCH] libnl: don't use out-of-scope buffer
Andrey Vagin
avagin at openvz.org
Mon Nov 23 09:06:26 PST 2015
2015-11-23 18:36 GMT+03:00 Thomas Haller <thaller at redhat.com>:
> On Mon, 2015-11-23 at 17:31 +0300, Andrey Vagin wrote:
>> From: Andrew Vagin <avagin at virtuozzo.com>
>>
>> The control message buffer is desclared in the if body
>> and then this buffer is used outside.
>>
>> Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
>
> Hi Andrew,
>
>
> Thanks for spotting this and for the patch.
>
> But can we not just declare "buf" at the outer scope
> of the function?
Sure, we can. The patch is attached.
Thanks,
Andrew
>
>
> Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-libnl-don-t-use-out-of-scope-buffer.patch
Type: text/x-patch
Size: 1126 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/libnl/attachments/20151123/fe2ffb74/attachment.bin>
More information about the libnl
mailing list