Ignore:
Timestamp:
Feb 10, 2015 3:20:04 AM (7 years ago)
Author:
ming
Message:

Re #1782 (misc): Prevent buffer overrun in pjsip message/uri printing
Thanks to Sagi Iltus for the patch

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/include/pjsip/print_util.h

    r4537 r4979  
    2020#ifndef __PJSIP_PRINT_H__ 
    2121#define __PJSIP_PRINT_H__ 
     22 
     23#define copy_advance_char_check(buf,chr)   \ 
     24        do { \ 
     25            if (1 >= (endbuf-buf)) return -1;   \ 
     26            *buf++ = chr; \ 
     27        } while (0) 
    2228 
    2329#define copy_advance_check(buf,str)   \ 
Note: See TracChangeset for help on using the changeset viewer.