bryancall commented on code in PR #14115:
URL: https://github.com/apache/trafficserver/pull/14115#discussion_r4621257891


##########
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:
   Done in 14bdb7601a: declared it where it's assigned, as const, so there's no 
uninitialized window.



-- 
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]

Reply via email to