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 ?
** Changed in: apt (Ubuntu)
Status: Invalid => Triaged
--
apt fails if size of translated RFC822 message is much larger than the size of
the original message.
https://bugs.launchpad.net/bugs/545336
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs