linux-nvme / nvme-cli

NVMe management command line interface.

Home Page:https://nvmexpress.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix code scanning alert - Potential use after free

igaw opened this issue · comments

CodeQL complains about a UAF:

Memory may have been previously freed by  


ccan/ccan/strset/strset.c:196
			}

			/* Sew empty string back so remaining logic works */
			free(n->u.n);
			n->u.s = empty_str;
			break;
		}


if (!streq(member, n->u.s)) {

Tracking issue for: