Skip to content

Conversation

@ffoulkes
Copy link
Contributor

  • Replaced instances of strlen() (which is considered unsafe because it is unbounded) with strnlen().
  • Changed a few instances of char * to const char *, to enforce the immutability of the data.

Signed-off-by: Derek G Foster derek.foster@intel.com

- Replaced instances of strlen() (which is considered unsafe
  because it is unbounded) with strnlen().
- Changed a few instances of char * to const char *, to enforce
  the immutability of the data.

Signed-off-by: Derek G Foster <derek.foster@intel.com>
Copy link

@Namrata-intel Namrata-intel left a comment

Choose a reason for hiding this comment

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

looks good

@ffoulkes ffoulkes merged commit 56deb07 into main Jan 25, 2023
@ffoulkes ffoulkes deleted the fix-unsafe-funcs branch January 25, 2023 00:04
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.

4 participants