Ignore:
Timestamp:
Jan 9, 2008 10:11:24 PM (16 years ago)
Author:
bennylp
Message:

Ticket #443: Overflow in dump_media_session() (thanks Simon Farmer)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjsip/src/pjsua-lib/pjsua_call.c

    r1671 r1674  
    18991899               good_number(bytes, stat.rx.bytes), 
    19001900               good_number(ipbytes, stat.rx.bytes + stat.rx.pkt * 40), 
    1901                good_number(avg_bps, stat.rx.bytes * 8 * 1000 / PJ_TIME_VAL_MSEC(media_duration)), 
    1902                good_number(avg_ipbps, (stat.rx.bytes + stat.rx.pkt * 40) * 8 * 1000 / PJ_TIME_VAL_MSEC(media_duration)), 
     1901               good_number(avg_bps, (pj_int32_t)((pj_int64_t)stat.rx.bytes * 8 * 1000 / PJ_TIME_VAL_MSEC(media_duration))), 
     1902               good_number(avg_ipbps, (pj_int32_t)(((pj_int64_t)stat.rx.bytes + stat.rx.pkt * 40) * 8 * 1000 / PJ_TIME_VAL_MSEC(media_duration))), 
    19031903               indent, 
    19041904               stat.rx.loss, 
     
    19591959               good_number(bytes, stat.tx.bytes), 
    19601960               good_number(ipbytes, stat.tx.bytes + stat.tx.pkt * 40), 
    1961                good_number(avg_bps, stat.tx.bytes * 8 * 1000 / PJ_TIME_VAL_MSEC(media_duration)), 
    1962                good_number(avg_ipbps, (stat.tx.bytes + stat.tx.pkt * 40) * 8 * 1000 / PJ_TIME_VAL_MSEC(media_duration)), 
     1961               good_number(avg_bps, (pj_int32_t)((pj_int64_t)stat.tx.bytes * 8 * 1000 / PJ_TIME_VAL_MSEC(media_duration))), 
     1962               good_number(avg_ipbps, (pj_int32_t)(((pj_int64_t)stat.tx.bytes + stat.tx.pkt * 40) * 8 * 1000 / PJ_TIME_VAL_MSEC(media_duration))), 
    19631963 
    19641964               indent, 
Note: See TracChangeset for help on using the changeset viewer.