-
Notifications
You must be signed in to change notification settings - Fork 151
Open
Description
[src/request.c:293] -> [src/request.c:290] -> [src/request.c:298]: (error) Using pointer to local variable 'headerNameWithPrefix' that is out of scope.
Source code is
if (addPrefix) {
char headerNameWithPrefix[S3_MAX_METADATA_SIZE - sizeof(": v")];
snprintf(headerNameWithPrefix, sizeof(headerNameWithPrefix),
S3_METADATA_HEADER_NAME_PREFIX "%s", headerName);
headerStr = headerNameWithPrefix;
}
// Make sure the new header (plus ": " plus string terminator) will fit
// in the buffer.
if ((values->amzHeadersRawLength + strlen(headerStr) + strlen(headerValue)
+ 3) >= sizeof(values->amzHeadersRaw)) {
Metadata
Metadata
Assignees
Labels
No labels