Skip to content

Commit

Permalink
[XrdOuc] Prevent seqv in XrdOucString::replace().
Browse files Browse the repository at this point in the history
fixes #1094
  • Loading branch information
simonmichal committed Jan 22, 2020
1 parent b4c3ccf commit c764993
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/XrdOuc/XrdOucString.cc
Expand Up @@ -808,7 +808,8 @@ int XrdOucString::replace(const char *s1, const char *s2, int from, int to)
memcpy(pc-l2,s2,l2);
nc--;
atn = at;
at = rfind(s1,at-l1);
if( at - l1 < 0 ) at = -1;
else at = rfind(s1,at-l1);
}
dl = nr*dd;
}
Expand Down

0 comments on commit c764993

Please sign in to comment.