The Samba-Bugzilla – Attachment 14872 Details for
Bug 11338
Rsync Crash - Segmentation fault
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for the rwrite function
rsync-3.0.6-iconv-logging.patch (text/plain), 652 bytes, created by
Michal Ruprich
on 2019-02-27 10:00:05 UTC
(
hide
)
Description:
Patch for the rwrite function
Filename:
MIME Type:
Creator:
Michal Ruprich
Created:
2019-02-27 10:00:05 UTC
Size:
652 bytes
patch
obsolete
>diff --git a/log.c b/log.c >index 34a013b..1aca728 100644 >--- a/log.c >+++ b/log.c >@@ -377,10 +377,13 @@ output_msg: > filtered_fwrite(f, convbuf, outbuf.len, 0); > outbuf.len = 0; > } >- if (!ierrno || ierrno == E2BIG) >- continue; >- fprintf(f, "\\#%03o", CVAL(inbuf.buf, inbuf.pos++)); >- inbuf.len--; >+ /* Log one byte of illegal/incomplete sequence and continue with >+ * the next character. Check that the buffer is non-empty for the >+ * sake of robustness. */ >+ if ((ierrno == EILSEQ || ierrno == EINVAL) && inbuf.len) { >+ fprintf(f, "\\#%03o", CVAL(inbuf.buf, inbuf.pos++)); >+ inbuf.len--; >+ } > } > } else > #endif
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 11338
:
11170
| 14872