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

Diff for /src/usr.bin/ssh/sftp-common.c between version 1.33 and 1.34

version 1.33, 2022/09/19 10:41:58 version 1.34, 2023/03/31 04:00:37
Line 132 
Line 132 
   
                 if ((r = sshbuf_get_u32(b, &count)) != 0)                  if ((r = sshbuf_get_u32(b, &count)) != 0)
                         return r;                          return r;
                   if (count > 0x100000)
                           return SSH_ERR_INVALID_FORMAT;
                 for (i = 0; i < count; i++) {                  for (i = 0; i < count; i++) {
                         if ((r = sshbuf_get_cstring(b, &type, NULL)) != 0 ||                          if ((r = sshbuf_get_cstring(b, &type, NULL)) != 0 ||
                             (r = sshbuf_get_string(b, &data, &dlen)) != 0)                              (r = sshbuf_get_string(b, &data, &dlen)) != 0)

Legend:
Removed from v.1.33  
changed lines
  Added in v.1.34