[openib-general] [PATCH] opensm: osm_ucast_mgr.c: fix node_desc.description as string usages [was: [PATCH 2/5] opensm: ucast_mgr dumper unification]

Hal Rosenstock halr at voltaire.com
Mon Oct 30 08:14:20 PST 2006


On Sat, 2006-10-28 at 16:17, Sasha Khapyorsky wrote:
> On 22:35 Thu 19 Oct     , Sasha Khapyorsky wrote:
> > This unifies ucsat_mgr dumper. Main goal is to provide infrastructure
> > for different dump file generation using the same routines.
> > 
> > Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
> > ---
> >  osm/opensm/osm_ucast_mgr.c |  104 +++++++++++++++++++++++---------------------
> >  1 files changed, 55 insertions(+), 49 deletions(-)
> > 
> 
> And there is incremental patch already:
> 
> 
> 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. This was in new lft dumper too.
> 
> Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>

Thanks. Applied.

-- Hal





More information about the general mailing list