Skip to content

Conversation

@jiangenj
Copy link
Contributor

@jiangenj jiangenj commented Sep 5, 2023

Change-Id: I6a19792ee9e174720242602cec4a79134f6218de

Change-Id: I6a19792ee9e174720242602cec4a79134f6218de
@WorksButNotTested
Copy link
Contributor

lgtm. Thanks

strncpy(lib_details->name, details->name, PATH_MAX);
strncpy(lib_details->path, details->path, PATH_MAX);
lib_details->name[PATH_MAX] = '\0';
lib_details->path[PATH_MAX] = '\0';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the variable path_max+1? Otherwise this is an off by one

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes it is. The struct is defined just above on line 30.

@vanhauser-thc vanhauser-thc merged commit 167fb77 into AFLplusplus:dev Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants