[openib-general] [PATCH v2] opensm: fix node_desc.description as string usages
Hal Rosenstock
halr at voltaire.com
Mon Oct 30 04:16:31 PST 2006
On Sat, 2006-10-28 at 16:41, Sasha Khapyorsky wrote:
> Hmm, in one place there was the same copy-paste error as in the osmtest
> patch. Resend this one too...
>
> Sasha
>
>
> node_desc.description buffer is received from the network and should
> not be NULL-terminated. In such cases using it as regular string in
> functions like printf() leads to segmentation faults. This patch fixes
> such usages.
>
> Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
Thanks. Applied.
-- Hal
More information about the general
mailing list