Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167163814
D12631.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
495 B
Referenced Files
None
Subscribers
None
D12631.diff
View Options
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 any more 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)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Aug 20, 2:42 PM (16 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36953235
Default Alt Text
D12631.diff (495 B)
Attached To
Mode
D12631: patch(1): don't assume a match if we run out of context to check
Attached
Detach File
Event Timeline
Log In to Comment