bneradt commented on code in PR #14115: URL: https://github.com/apache/trafficserver/pull/14115#discussion_r4619705836
########## example/plugins/c-api/secure_link/secure_link.cc: ########## @@ -58,7 +58,8 @@ TSRemapDoRemap(void *ih, TSHttpTxn rh, TSRemapRequestInfo *rri) unsigned char md[MD5_DIGEST_LENGTH]; secure_link_info *sli = static_cast<secure_link_info *>(ih); char *token = nullptr, *tokenptr = nullptr, *expire = nullptr, *expireptr = nullptr, *path = nullptr; - char *s, *ptr, *saveptr = nullptr, *val, hash[32] = ""; + char *s, *ptr, *saveptr = nullptr, *val, hash[2 * MD5_DIGEST_LENGTH + 1] = ""; + bool digest_ok; Review Comment: To be defensive, might as well initialize to false (`digest_ok` that is). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
