Open history files with a restrictive mode (user read/write only).
Apply by doing:
cd /usr/src
patch -p0 < 024_readline.patch
And rebuild binutils by doing:
cd /usr/src/gnu/usr.bin/binutils
make -f Makefile.bsd-wrapper obj
make -f Makefile.bsd-wrapper depend
make -f Makefile.bsd-wrapper
make -f Makefile.bsd-wrapper install