Skip to content

Potential Null Pointer Dereference #41

@qingkaishi

Description

@qingkaishi

Hi

I found a potential null pointer dereference in the code:

at https://github.com/dugsong/libdnet/blob/master/test/dnet/fw.c#L109

p = strtok(argv[4], ":");  // step 1: it may return null with a malicious input

if (addr_aton(p, &fr->fw_src) < 0) // step 2: pass null to the function addr_aton and dereference the null in the function
	return (-1);

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions