History log of /openbsd-src/usr.bin/patch/ed.c (Results 1 – 4 of 4)
Revision Date Author Comments
# 5fbd5e42 02-Dec-2019 jca <jca@openbsd.org>

Use getline(3) to handle lines longer than 8192 bytes in patch files

Spotted by jsg@ when working on mesa. Diff tested by sthen@ in
a partial i386 bulk. Input from and ok jsg@ millert@


# bf6824b1 02-Sep-2016 tobias <tobias@openbsd.org>

Fix 'c'hange command handling if last line of a file is removed.

If the last line of a file is removed, the line cache is erroneously
considered empty, which means that changed lines are added at th

Fix 'c'hange command handling if last line of a file is removed.

If the last line of a file is removed, the line cache is erroneously
considered empty, which means that changed lines are added at the top.

spotted by and okay otto@

show more ...


# 4125338f 22-Feb-2016 tobias <tobias@openbsd.org>

Properly handle ed-files which fully replace input file content. This
misbehaviour is triggered with 'c' and 'i' commands on empty buffers.

Spotted and fixed by Martin Natano <natano at natano dot n

Properly handle ed-files which fully replace input file content. This
misbehaviour is triggered with 'c' and 'i' commands on empty buffers.

Spotted and fixed by Martin Natano <natano at natano dot net>.

ok millert@

show more ...


# 6d4b3e9e 16-Oct-2015 tobias <tobias@openbsd.org>

Add native support for ed-style diffs. No need to pledge "proc exec" anymore.

ok deraadt