-
Notifications
You must be signed in to change notification settings - Fork 328
null-pointer failure in rb_sort_clb #2471
Copy link
Copy link
Open
Labels
is:bugBug description.Bug description.status:invalidIssue is not reproducible or the behavior is intended.Issue is not reproducible or the behavior is intended.
Metadata
Metadata
Assignees
Labels
is:bugBug description.Bug description.status:invalidIssue is not reproducible or the behavior is intended.Issue is not reproducible or the behavior is intended.
/**
*/
static int
in (const struct ly_ctx *ctx, const struct lyd_value *val1, const struct lyd_value *val2)
{
assert(val1->realtype == val2->realtype);
return val1->realtype->plugin->sort(ctx, val1, val2);
}
we met null-poniter failure when using the interface lyds_merge, we find the val1 could be null-pointer. How should we perform a NULL check on the input parameter.
Best wishes,
ciao