[openib-general] OFED-1.1: *** stack smashing detected ***: opensm terminated
Sasha Khapyorsky
sashak at voltaire.com
Fri Nov 10 16:32:03 PST 2006
On 01:31 Sat 11 Nov , Hal Rosenstock wrote:
> Can you see if this fixes it ? Thanks.
>
> -- Hal
>
> Index: opensm/osm_helper.c
> ===================================================================
> --- opensm/osm_helper.c (revision 10089)
> +++ opensm/osm_helper.c (working copy)
> @@ -1264,7 +1264,7 @@
> IN const ib_service_record_t* const p_sr,
> IN const osm_log_level_t log_level )
> {
> - char buf_service_key[33];
> + char buf_service_key[35];
> char buf_service_name[65];
Good catch!
Other thing here buf_service_name is used for copying service_name
buffer which is NULL terminated according to spec. So copying is not
needed, instead we can put '\0' at end of buffer when MAD is received
(for sure).
Sasha
More information about the general
mailing list