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

Diff for /src/usr.bin/tmux/input.c between version 1.215 and 1.216

version 1.215, 2023/06/25 15:53:07 version 1.216, 2023/06/30 13:19:32
Line 2842 
Line 2842 
     const char *end)      const char *end)
 {  {
         char    *out = NULL;          char    *out = NULL;
         size_t   outlen = 0;          int      outlen = 0;
   
         if (buf != NULL && len != 0) {          if (buf != NULL && len != 0) {
                   if (len >= ((size_t)INT_MAX * 3 / 4) - 1)
                           return;
                 outlen = 4 * ((len + 2) / 3) + 1;                  outlen = 4 * ((len + 2) / 3) + 1;
                 out = xmalloc(outlen);                  out = xmalloc(outlen);
                 if ((outlen = b64_ntop(buf, len, out, outlen)) == -1) {                  if ((outlen = b64_ntop(buf, len, out, outlen)) == -1) {

Legend:
Removed from v.1.215  
changed lines
  Added in v.1.216