Created attachment 150843 [details]
This patch solves the problem.
Because of the size mismatch between int and ssize_t, the value given by a
pointer to int destroys an adjacent value when it would be written as the
pointer to ssize_t. Some values defined in src/eb.c are referenced as
the values of ssize_t in libeb functions, causing a segmentation fault or
incorrect search results.
This should have been a patch to the port, not the software.
I think somebody could rename the file to patch-src_eb.c and stick it in files. However, it would have been better to submit a patch against the port that creates that patch file.
The port is unmaintained.
The patch has no test logs, but they wouldn't help much as it fixes a runtime problem.
Move to patch-ready state.
A commit references this bug:
Date: Tue Jan 20 21:47:16 UTC 2015
New revision: 377542
japanese/ebview-gtk2: Fix size mismatch between int and ssize_t (amd64)
This fetchs the source of segfaults on amd64.
Submitted by: moga (chigusa.homeunix.org)