[BACK]Return to misc.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/misc.c between version 1.181 and 1.182

version 1.181, 2023/03/03 02:37:58 version 1.182, 2023/07/14 05:31:44
Line 879 
Line 879 
 {  {
         char *ret, *dst;          char *ret, *dst;
         int ch;          int ch;
           size_t srclen;
   
         ret = xmalloc(strlen(src) + 1);          if ((srclen = strlen(src)) >= SIZE_MAX)
                   fatal_f("input too large");
           ret = xmalloc(srclen + 1);
         for (dst = ret; *src != '\0'; src++) {          for (dst = ret; *src != '\0'; src++) {
                 switch (*src) {                  switch (*src) {
                 case '+':                  case '+':

Legend:
Removed from v.1.181  
changed lines
  Added in v.1.182