Changeset 4613 for pjproject/trunk/pjsip/src/pjsua-lib/pjsua_dump.c
- Timestamp:
- Oct 8, 2013 9:08:13 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjsip/src/pjsua-lib/pjsua_dump.c
r4537 r4613 129 129 ); 130 130 131 if (len < 1 || len > end-p) {131 if (len < 1 || len >= end-p) { 132 132 *p = '\0'; 133 133 return (unsigned)(p-buf); … … 187 187 ); 188 188 189 if (len < 1 || len > end-p) {189 if (len < 1 || len >= end-p) { 190 190 *p = '\0'; 191 191 return (unsigned)(p-buf); … … 202 202 pj_math_stat_get_stddev(&stat->rtt) / 1000.0 203 203 ); 204 if (len < 1 || len > end-p) {204 if (len < 1 || len >= end-p) { 205 205 *p = '\0'; 206 206 return (unsigned)(p-buf); … … 260 260 "%s #%d %s deactivated\n", 261 261 indent, i, media_type_str); 262 if (len < 1 || len > end-p) {262 if (len < 1 || len >= end-p) { 263 263 *p = '\0'; 264 264 return; … … 364 364 dir_str, 365 365 rem_addr); 366 if (len < 1 || len > end-p) {366 if (len < 1 || len >= end-p) { 367 367 *p = '\0'; 368 368 return; … … 471 471 472 472 # define VALIDATE_PRINT_BUF() \ 473 if (len < 1 || len > end-p) { *p = '\0'; return; } \473 if (len < 1 || len >= end-p) { *p = '\0'; return; } \ 474 474 p += len; *p++ = '\n'; *p = '\0' 475 475
Note: See TracChangeset
for help on using the changeset viewer.