• Wayne Davison's avatar
    Improve iconvbufs() to do more buffer size checks. · cb784f18
    Wayne Davison authored
    - 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).
    cb784f18
rsync.c 20.5 KB