[Bug 243974] diff(1) generates core dump when --tabsize is used
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Feb 13 07:11:54 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243974
--- Comment #3 from fehmi noyan isi <fnoyanisi at yahoo.com> ---
POC for the proposed patch
fnoyanisi at patch:~ $ diff A B
1,5c1,3
< same1
< differ1
<
<
< differ3
---
> same1
> differ2
> differ4
fnoyanisi at patch:~ $ diff A B --tabsize 4
Segmentation fault (core dumped)
// After the patch
fnoyanisi at patch:~ $ diff A B --tabsize 4
1,5c1,3
< same1
< differ1
<
<
< differ3
---
> same1
> differ2
> differ4
fnoyanisi at patch:~ $ uname -a
FreeBSD patch 13.0-CURRENT FreeBSD 13.0-CURRENT #0 r357606: Thu Feb 6 04:40:35
UTC 2020
root at releng1.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
fnoyanisi at patch:~ $
// No failing ATF tests
root at patch:/usr/tests # kyua test -k /usr/tests/Kyuafile usr.bin/diff
usr.bin/diff/diff_test:Bflag -> passed [0.191s]
usr.bin/diff/diff_test:b230049 -> passed [0.054s]
usr.bin/diff/diff_test:brief_format -> passed [0.180s]
usr.bin/diff/diff_test:group_format -> passed [0.064s]
usr.bin/diff/diff_test:header -> passed [0.066s]
usr.bin/diff/diff_test:header_ns -> passed [0.063s]
usr.bin/diff/diff_test:ifdef -> passed [0.060s]
usr.bin/diff/diff_test:side_by_side -> passed [0.130s]
usr.bin/diff/diff_test:simple -> passed [0.230s]
usr.bin/diff/diff_test:unified -> passed [0.097s]
usr.bin/diff/netbsd_diff_test:mallocv -> passed [0.069s]
usr.bin/diff/netbsd_diff_test:nomallocv -> passed [0.070s]
usr.bin/diff/netbsd_diff_test:same -> passed [0.071s]
Results file id is usr_tests.20200213-193818-429125
Results saved to /root/.kyua/store/results.usr_tests.20200213-193818-429125.db
13/13 passed (0 failed)
root at patch:/usr/tests #
There is another diff(1) patch I am working on [1] but I am reluctant to submit
more than one patch for the same source file at once.
[1] https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=243975
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list