retitle 244835 [apt-pkg] Cannot handle lines longer than ~300 chars in config
thanks

On Tue, Apr 20, 2004 at 08:19:32AM +0000, Gerrit Pape wrote:

> Hi, when putting this into etc/apt/apt.conf.d/99test, apt-get hangs in
> an infinite loop it seems:
> 
> # cat /etc/apt/apt.conf.d/99test 
> DPkg
> {
>   Post-Invoke {"echo 
> 678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901";}
> }
> # apt-get install --reinstall sed
> ...

It sounds like something's wrong in ReadConfigFile; there is a 300-character
buffer in there used with istream::getline.  It looks like it attempts to
deal with longer lines, but perhaps there is a bug in it.

-- 
 - mdz

Reply via email to