Supplying a negative line length results in illegal memory access
while parsing the input file (the memset that is supposed to clear
the memory triggers an out of boundary write).
While at it, also prevent line length to become too large. It is
used in a multiplication with LINES during page calculation. If
in doubt, you can increase that limit of course.
Supplying a negative line length results in illegal memory access while parsing the input file (the memset that is supposed to clear the memory triggers an out of boundary write).
While at it, also prevent line length to become too large. It is used in a multiplication with LINES during page calculation. If in doubt, you can increase that limit of course.
Signed-off-by: Tobias Stoeckmann tobias@stoeckmann.org