fix illegal memory access when input file does not end with line break

add separate Makefile for test

(0) -30 -10 -2 +2 +10 tip

mercurial