diff options
author | Wayne Davison <wayned@samba.org> | 2013-05-19 23:56:34 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2013-05-19 23:56:34 +0000 |
commit | cb784f18ec02778419c58896cabbb418f5512ae1 (patch) | |
tree | a4893224ba18e7f24618f82314744f6f192762bf /cleanup.c | |
parent | 2dc2070992c00ea6625031813f2b6c886ddc3ade (diff) | |
download | android_external_rsync-cb784f18ec02778419c58896cabbb418f5512ae1.tar.gz android_external_rsync-cb784f18ec02778419c58896cabbb418f5512ae1.tar.bz2 android_external_rsync-cb784f18ec02778419c58896cabbb418f5512ae1.zip |
Improve iconvbufs() to do more buffer size checks.
- If iconv() returns EINVAL or EILSEQ and the error is being ignored, make
sure that there is room in the output buffer to store the erroneous char.
- When accepting an erroneous char, be sure to break if there are no more
input characters (without calling iconv() with a zero input length).
Diffstat (limited to 'cleanup.c')
0 files changed, 0 insertions, 0 deletions