File-GetLineMaxLength version 1.01

File::GetLineMaxLength - Get lines from a file, up to a maximum line length

While generally reading lines of data is easy in perl (eg C<E<lt>$FhE<gt>>), there's apparently no easy way to limit the read line to a maximum length (as in the C call C<fgets(char *s, int size, FILE *stream)>). This can lead to potential DOS situations in your code where an attacker can send an arbitrarily large line and use up all your memory. Of course you can use things like BSD::Resource to stop your program using all memory, but that just kills off the process and gives you no more information about what was causing the problem.

INSTALLATION

To install this module type the following:

perl Makefile.PL
make
make test
make install

DEPENDENCIES

This module requires these other modules and libraries:

blah blah blah

COPYRIGHT AND LICENCE

Put the correct copyright and licence information here.

Copyright (C) 2004-2007 by FastMail IP Partners

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.4 or, at your option, any later version of Perl 5 you may have available.