FreeBSD Bugzilla – Attachment 189343 Details for
Bug 224842
[exp-run] patch(1) change to fix net/rubygem-grpc patching
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch against src/head
patchexp-src.diff (text/plain), 697 bytes, created by
Kyle Evans
on 2018-01-02 17:55:44 UTC
(
hide
)
Description:
patch against src/head
Filename:
MIME Type:
Creator:
Kyle Evans
Created:
2018-01-02 17:55:44 UTC
Size:
697 bytes
patch
obsolete
>Index: usr.bin/patch/inp.c >=================================================================== >--- usr.bin/patch/inp.c >+++ usr.bin/patch/inp.c >@@ -213,8 +213,11 @@ > /* now scan the buffer and build pointer array */ > iline = 1; > i_ptr[iline] = i_womp; >- /* test for NUL too, to maintain the behavior of the original code */ >- for (s = i_womp, i = 0; i < i_size && *s != '\0'; s++, i++) { >+ /* >+ * Testing for NUL here actively breaks files that innocently use NUL >+ * for other reasons. mmap(2) succeeded, just scan the whole buffer. >+ */ >+ for (s = i_womp, i = 0; i < i_size; s++, i++) { > if (*s == '\n') { > if (iline == lines_allocated) { > if (!reallocate_lines(&lines_allocated))
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 224842
:
189342
| 189343