Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] #4444

Open
lilixx333 opened this issue Apr 11, 2024 · 0 comments
Open

[Bug] #4444

lilixx333 opened this issue Apr 11, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@lilixx333
Copy link

Describe the bug
For this code, the sixth line ”ptr = container_of(entry, struct cipso_v4_doi, rcu); “ should have a data dependency on the eighth line ”ptr->array[i] = ptr->data;“, but joern did not generate a node about the sixth line, and there is no data dependency.

static void netlbl_cipsov4_doi_free(struct rcu_head *entry)
{
	struct cipso_v4_doi *ptr;
	int a = 8;

	ptr = container_of(entry, struct cipso_v4_doi, rcu);   //sixth line
	for(int i = 0; i < a; i++){
		ptr->array[i] = ptr->data;  //eighth line
	}
	switch (ptr->type) {
	case CIPSO_V4_MAP_STD:
		kfree(ptr->map.std->lvl.cipso);
		kfree(ptr->map.std->lvl.local);
		kfree(ptr->map.std->cat.cipso);
		kfree(ptr->map.std->cat.local);
		break;
	}
	kfree(ptr);
}

Screenshots
The abstract syntax tree generated by joern
image

Desktop (please complete the following information):

  • Joern Version 2.0.324
  • Java version 19
@lilixx333 lilixx333 added the bug Something isn't working label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant