FILE.gets() can get in invalid state
Imported from http://bugzilla.roxen.com/bugzilla/show_bug.cgi?id=1503
Reported by Mirar , Idonex Heavy Industries mirar@roxen.com
Somehow, cached_lines can be something other then ({}),
mailing: setik@usinternet.com
Bad argument 1 to sizeof().
/usr/local/pike/mirar/pike/7.3.2/lib/modules/Stdio.pmod/module.pmod:1051:
gets()
/usr/local/pike/mirar/pike/7.3.2/lib/modules/Protocols.pmod/NNTP.pmod:16:
readreturncode()
/usr/local/pike/mirar/pike/7.3.2/lib/modules/Stdio.pmod/module.pmod:1219:
__INIT()
/usr/local/pike/mirar/pike/7.3.2/lib/modules/Protocols.pmod/NNTP.pmod:75:
__INIT()
/usr/local/pike/mirar/pike/7.3.2/lib/modules/Protocols.pmod/SMTP.pmod:7:
__INIT()
/usr/local/pike/mirar/pike/7.3.2/lib/modules/Protocols.pmod/SMTP.pmod:122:
__INIT() SMTP: client("elfwood.lysator.liu.se")
string gets()
{
1051: if( sizeof( cached_lines ) > lp+1 )
{
string r = cached_lines[ lp++ ];
I currently do not have more clues. This bugreport is to remember that the problem exists (if it repeat itself) or if someone happen to spot the error.