Comment 9 for bug 545336

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote : Re: Unable to install any program from synaptic after search it. (spanish installation)

Sorry for going back and forth but finally it's an apt bug and not a synaptic one. And a tricky one.
It is not specific to spanish language but spanish translators are a bit "verbose" and translation of the description of texlive-latex-extra is much larger than the buffer space allocated for it.

The record size of this package (t-l-e) is 34838 + 200 bytes for translated desc I suppose. That gives us a buffer size of 35837.
In spanish the record size for the same package is 38600. Much larger than the allocated 35837 bytes.

Since the parser doesn't reach the end of the message before reaching the size of the buffer it fails and returns false.
In pkgRecords::Lookup we do not catch this return status and continue as if nothing happened. I think that's what gives the funky error messages about unauthenticated packages and file locking.

TODO ?
- Catch the return code of the Jump method call in pkgRecords::Lookup and do what ?
- Increase the static buffer size in the debRecordParser constructor significantly ?
- Dynamically resize the buffer size in pkgTagSection::Scan ?

Michael what's your ideas ?