Page MenuHomeFreeBSD

D12631.id33849.diff
No OneTemporary

D12631.id33849.diff

Index: usr.bin/patch/patch.c
===================================================================
--- usr.bin/patch/patch.c
+++ 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)

File Metadata

Mime Type
text/plain
Expires
Fri, Aug 21, 9:41 AM (6 h, 14 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37027395
Default Alt Text
D12631.id33849.diff (479 B)

Event Timeline