Skip to content

Commit

Permalink
[SSI] Avoid SEGV when request spans more than 1 buffer. Fixes #1518
Browse files Browse the repository at this point in the history
  • Loading branch information
abh3 authored and gganis committed Nov 23, 2021
1 parent 1fbd20a commit eb7fea3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/XrdSsi/XrdSsiFileSess.cc
Original file line number Diff line number Diff line change
Expand Up @@ -782,11 +782,12 @@ XrdSfsXferSize XrdSsiFileSess::writeAdd(const char *buff, // In
if (!NewRequest(rid, oucBuff, 0, reqSize))
return XrdSsiUtils::Emsg(epname, ENOMEM, "write", gigID, *eInfo);
oucBuff = 0;
} else {
dlen += blen;
oucBuff->SetLen(dlen, dlen);
}

// Return how much we appended
//
dlen += blen;
oucBuff->SetLen(dlen, dlen);
return blen;
}

0 comments on commit eb7fea3

Please sign in to comment.