FreeBSD Bugzilla – Attachment 187868 Details for
Bug 223545
[exp-run] patch(1) change to reject non-matching patches with limited context
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch against head
D12631.diff (text/plain), 494 bytes, created by
Kyle Evans
on 2017-11-08 23:19:10 UTC
(
hide
)
Description:
patch against head
Filename:
MIME Type:
Creator:
Kyle Evans
Created:
2017-11-08 23:19:10 UTC
Size:
494 bytes
patch
obsolete
>Index: head/usr.bin/patch/patch.c >=================================================================== >--- head/usr.bin/patch/patch.c >+++ head/usr.bin/patch/patch.c >@@ -1026,6 +1026,9 @@ > const char *plineptr; > unsigned short plinelen; > >+ /* Patch does not match if we don't have anymore context to use */ >+ if (pline > pat_lines) >+ return false; > for (iline = base + offset + fuzz; pline <= pat_lines; pline++, iline++) { > ilineptr = ifetch(iline, offset >= 0); > if (ilineptr == NULL)
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 223545
: 187868