-
Notifications
You must be signed in to change notification settings - Fork 837
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
Code sonar cleanup #7782
Code sonar cleanup #7782
Conversation
bf96af6
to
f58c0cb
Compare
f58c0cb
to
6175778
Compare
Retest this please |
wolfssl/wolfcrypt/types.h
Outdated
@@ -917,6 +917,7 @@ typedef struct w64wrapper { | |||
WOLFSSL_API int wc_strncasecmp(const char *s1, const char *s2, size_t n); | |||
#endif | |||
|
|||
WOLFSSL_API char* wc_strdup(const char *src, int memType); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be public... Please make WOLFSSL_LOCAL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
wolfcrypt/src/wc_port.c
Outdated
@@ -1177,6 +1177,21 @@ int wc_strncasecmp(const char *s1, const char *s2, size_t n) | |||
} | |||
#endif /* USE_WOLF_STRNCASECMP */ | |||
|
|||
char* wc_strdup(const char *src, int memType) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be always exposed... It needs to be conditional based on #ifdef XGETENV
or possibly another macro like USE_WOLF_STRDUP
. I'd like to see this strdup function perfectly match the stdlib strdup API. Also consider fixing #define BUF_strdup strdup
to use it...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
bbeb246
to
87386f2
Compare
No description provided.