Skip to content

prov/shm: incorrect iteration in fi_av_insert() #11292

@tatarintsevsv

Description

@tatarintsevsv

Looks like smr_av_insert() has invalid addresses iteration
Docs says:

When using the FI_ADDR_STR format, the addr parameter should reference an array of strings (char **).

But in smr_av_insert():
for (i = 0; i < count; i++, addr = (char *) addr + strlen(addr) + 1)
istead of iteration with
for (i = 0; i < count; i++)
So I got segfault when trying to pass char** addr
If this is really incorrect, I could fix it and make a PR

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions