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

Diff for /src/usr.bin/ssh/monitor.c between version 1.150 and 1.151

version 1.150, 2015/06/22 23:42:16 version 1.151, 2015/08/21 23:29:31
Line 391 
Line 391 
 static void *  static void *
 mm_zalloc(struct mm_master *mm, u_int ncount, u_int size)  mm_zalloc(struct mm_master *mm, u_int ncount, u_int size)
 {  {
         size_t len = (size_t) size * ncount;          if (size == 0 || ncount == 0 || ncount > SIZE_MAX / size)
         void *address;  
   
         if (len == 0 || ncount > SIZE_MAX / size)  
                 fatal("%s: mm_zalloc(%u, %u)", __func__, ncount, size);                  fatal("%s: mm_zalloc(%u, %u)", __func__, ncount, size);
   
         address = mm_malloc(mm, len);          return mm_malloc(mm, size * ncount);
   
         return (address);  
 }  }
   
 static void  static void

Legend:
Removed from v.1.150  
changed lines
  Added in v.1.151