diff options
author | Liong Sauw Ming <ming@teluu.com> | 2015-12-31 05:06:03 +0000 |
---|---|---|
committer | Liong Sauw Ming <ming@teluu.com> | 2015-12-31 05:06:03 +0000 |
commit | fdd5233b23cd1bda248b73aa6e8d9e06b7eba18d (patch) | |
tree | 6b7773a6bf3b794a2da01eb30504b972ad036a33 /pjsip/src/pjsua2/siptypes.cpp | |
parent | 893341dfdcb6a4b602a0b480cf68360ee4dfc018 (diff) |
Re #1882 (misc): Add assertion checks in pj_strncpy() and pj_strncpy_with_null(). When max is negative, it may go undetected and cause crash since it will be cast to an unsigned when calling pj_memcpy().
Thanks to Dusan Klinec for the suggestion.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@5229 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjsip/src/pjsua2/siptypes.cpp')
0 files changed, 0 insertions, 0 deletions