[PATCH] safe lzo decompression should be used
Hi, currently some decoders in libmpcodecs use lzo1x_decompress instead of lzo1x_decompress_safe, which means that there are no checks at all if the data fits in the output buffer. Despite the speed loss I think this really needs to be fixed (see attached patch). If speed really matters that much for somebody it would still be possible to add an switch to configure (like --extra-insecure :-P) Greetings, Reimar Döffinger
On Sun, Apr 09, 2006 at 11:22:00AM +0200, Reimar Döffinger wrote:
Hi, currently some decoders in libmpcodecs use lzo1x_decompress instead of lzo1x_decompress_safe, which means that there are no checks at all if the data fits in the output buffer. Despite the speed loss I think this really needs to be fixed (see attached patch). If speed really matters that much for somebody it would still be possible to add an switch to configure (like --extra-insecure :-P)
Whoever wrote this lzo decoder is an idiot. Having an unsafe version is not at all useful and it's certainly possible to make the safe version just as fast... Anyway apply this patch and 10l to whoever wrote the code... but 10000000000l to whoever wrote the library and named the functions lzo1x_decompress and lzo1x_decompress_safe rather than lzo1x_decompress_idiotic_insecure_shit and lzo1x_decompress. Rich
Hi, On 4/9/06, Rich Felker <dalias@aerifal.cx> wrote:
On Sun, Apr 09, 2006 at 11:22:00AM +0200, Reimar Döffinger wrote:
Hi, currently some decoders in libmpcodecs use lzo1x_decompress instead of lzo1x_decompress_safe, which means that there are no checks at all if the data fits in the output buffer. Despite the speed loss I think this really needs to be fixed (see attached patch). If speed really matters that much for somebody it would still be possible to add an switch to configure (like --extra-insecure :-P)
Whoever wrote this lzo decoder is an idiot. Having an unsafe version is not at all useful and it's certainly possible to make the safe version just as fast...
Anyway apply this patch and 10l to whoever wrote the code... but 10000000000l to whoever wrote the library and named the functions lzo1x_decompress and lzo1x_decompress_safe rather than lzo1x_decompress_idiotic_insecure_shit and lzo1x_decompress.
It's Tilmann Bitterberg: http://www1.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/libmpcodecs/vd_lzo.c if you have too much free time, you probably can find his address to send the pool of cola, and virtually fly over his house with google map :) Guillaume -- I am disillusioned enough to know that no man's opinion on any subject is worth a damn unless backed up with enough genuine information to make him really know what he's talking about. -- H. P. Lovecraft (about the flamewars on FFmpeg and MPlayer-dev mailing lists) http://www.brainyquote.com/quotes/quotes/h/hplovecr278144.html
On Sun, 2006-04-09 at 15:41 +0200, Guillaume POIRIER wrote:
Anyway apply this patch and 10l to whoever wrote the code... but 10000000000l to whoever wrote the library and named the functions lzo1x_decompress and lzo1x_decompress_safe rather than lzo1x_decompress_idiotic_insecure_shit and lzo1x_decompress.
It's Tilmann Bitterberg: http://www1.mplayerhq.hu/cgi-bin/cvsweb.cgi/main/libmpcodecs/vd_lzo.c
Little chance he will react, he quit as an active (transcode) developer some years ago. And the buffer overflows are indeed notorious in transcode :-(
[-- Attachment #2: smime.p7s --] [-- Type: application/x-pkcs7-signature, Encoding: base64, Size: 3.7K --]
Is there any chance we can configure the mailing lists to strip this nonsense? smime attachments add about 4k to each email that includes one. On a list with thousands of emails per year, this adds up to significant additional storage. IMO the issue is the same as text vs html. The mailing list should only accept plain text. Rich
Hi On 4/14/06, Rich Felker <dalias@aerifal.cx> wrote:
[-- Attachment #2: smime.p7s --] [-- Type: application/x-pkcs7-signature, Encoding: base64, Size: 3.7K --]
Is there any chance we can configure the mailing lists to strip this nonsense? smime attachments add about 4k to each email that includes one. On a list with thousands of emails per year, this adds up to significant additional storage. IMO the issue is the same as text vs html. The mailing list should only accept plain text.
Done. This kind of content shall now be just discarded from this list. We'll see about other lists if necessary. Guillaume -- I am disillusioned enough to know that no man's opinion on any subject is worth a damn unless backed up with enough genuine information to make him really know what he's talking about. -- H. P. Lovecraft (about the flamewars on FFmpeg and MPlayer-dev mailing lists) http://www.brainyquote.com/quotes/quotes/h/hplovecr278144.html
On Fri, 2006-04-14 at 22:08 +0200, Guillaume POIRIER wrote:
Done. This kind of content shall now be just discarded from this list. We'll see about other lists if necessary.
Testing needed? ;-)
On Fri, 2006-04-14 at 14:44 -0400, Rich Felker wrote:
[-- Attachment #2: smime.p7s --] [-- Type: application/x-pkcs7-signature, Encoding: base64, Size: 3.7K --]
Is there any chance we can configure the mailing lists to strip this nonsense? smime attachments add about 4k to each email that includes one. On a list with thousands of emails per year, this adds up to significant additional storage. IMO the issue is the same as text vs html. The mailing list should only accept plain text.
I apologise sincerely. You're probably right that certificates do not belong on a mailing list. I will see if I can suppress it for mailing lists automatically.
Hi, On 4/14/06, Erik Slagter <erik@slagter.name> wrote:
On Fri, 2006-04-14 at 14:44 -0400, Rich Felker wrote:
[-- Attachment #2: smime.p7s --] [-- Type: application/x-pkcs7-signature, Encoding: base64, Size: 3.7K --]
Is there any chance we can configure the mailing lists to strip this nonsense? smime attachments add about 4k to each email that includes one. On a list with thousands of emails per year, this adds up to significant additional storage. IMO the issue is the same as text vs html. The mailing list should only accept plain text.
I apologise sincerely. You're probably right that certificates do not belong on a mailing list. I will see if I can suppress it for mailing lists automatically.
\o_ Danm! I'm good!!!! _o/ ;) Guillaume -- I am disillusioned enough to know that no man's opinion on any subject is worth a damn unless backed up with enough genuine information to make him really know what he's talking about. -- H. P. Lovecraft (about the flamewars on FFmpeg and MPlayer-dev mailing lists) http://www.brainyquote.com/quotes/quotes/h/hplovecr278144.html
On Fri, Apr 14, 2006 at 11:00:50PM +0200, Erik Slagter wrote:
On Fri, 2006-04-14 at 14:44 -0400, Rich Felker wrote:
[-- Attachment #2: smime.p7s --] [-- Type: application/x-pkcs7-signature, Encoding: base64, Size: 3.7K --]
Is there any chance we can configure the mailing lists to strip this nonsense? smime attachments add about 4k to each email that includes one. On a list with thousands of emails per year, this adds up to significant additional storage. IMO the issue is the same as text vs html. The mailing list should only accept plain text.
I apologise sincerely. You're probably right that certificates do not belong on a mailing list. I will see if I can suppress it for mailing lists automatically.
No worry, I wasn't particularly flaming you. I just know that if this smime stuff becomes more popular it will massively bloat my mail archive. 180 bytes for pgp signature is not so bad, but this stupid smime thing is 4k and, looking at the data, it seems to mostly be advertisements for the company who issued the key, or something like that.. Rich
On Sat, 2006-04-15 at 00:50 -0400, Rich Felker wrote: <topic mode="off">
No worry, I wasn't particularly flaming you. I just know that if this smime stuff becomes more popular it will massively bloat my mail archive. 180 bytes for pgp signature is not so bad,
Something like this -> ;-)
but this stupid smime thing is 4k and, looking at the data, it seems to mostly be advertisements for the company who issued the key, or something like that..
LOL! That's because the signing chain travels through two level of Thawte. Don't know why they do that. Maybe it wouldn't be that bad to include some sort of compression in smime certs. I like my smime cert better than pgp though, because it requires face-to-face verification and is backed by thawte with an "official" CA. </topic>
On Sat, Apr 15, 2006 at 07:55:45PM +0200, Erik Slagter wrote:
On Sat, 2006-04-15 at 00:50 -0400, Rich Felker wrote:
<topic mode="off">
No worry, I wasn't particularly flaming you. I just know that if this smime stuff becomes more popular it will massively bloat my mail archive. 180 bytes for pgp signature is not so bad,
Something like this -> ;-)
I'll have to note here that GPG signed mails are also discouraged. There's no point when used on public mailing lists. Diego
On Sat, 2006-04-15 at 21:49 +0200, Diego Biurrun wrote:
On Sat, Apr 15, 2006 at 07:55:45PM +0200, Erik Slagter wrote:
On Sat, 2006-04-15 at 00:50 -0400, Rich Felker wrote:
<topic mode="off">
No worry, I wasn't particularly flaming you. I just know that if this smime stuff becomes more popular it will massively bloat my mail archive. 180 bytes for pgp signature is not so bad,
Something like this -> ;-)
I'll have to note here that GPG signed mails are also discouraged. There's no point when used on public mailing lists.
Please note I wasn't serious. You won't see it again...
On Sat, Apr 15, 2006 at 10:03:45PM +0200, Erik Slagter wrote:
On Sat, 2006-04-15 at 21:49 +0200, Diego Biurrun wrote:
On Sat, Apr 15, 2006 at 07:55:45PM +0200, Erik Slagter wrote:
On Sat, 2006-04-15 at 00:50 -0400, Rich Felker wrote:
<topic mode="off">
No worry, I wasn't particularly flaming you. I just know that if this smime stuff becomes more popular it will massively bloat my mail archive. 180 bytes for pgp signature is not so bad,
Something like this -> ;-)
I'll have to note here that GPG signed mails are also discouraged. There's no point when used on public mailing lists.
Please note I wasn't serious. You won't see it again...
It was more of a general remark. Diego
On Sat, Apr 15, 2006 at 09:49:10PM +0200, Diego Biurrun wrote:
On Sat, Apr 15, 2006 at 07:55:45PM +0200, Erik Slagter wrote:
On Sat, 2006-04-15 at 00:50 -0400, Rich Felker wrote:
<topic mode="off">
No worry, I wasn't particularly flaming you. I just know that if this smime stuff becomes more popular it will massively bloat my mail archive. 180 bytes for pgp signature is not so bad,
Something like this -> ;-)
I'll have to note here that GPG signed mails are also discouraged. There's no point when used on public mailing lists.
I sign all the mails I wrote. I find hard to understand your point here, IMHO gpg signing makes exactly the same point on public ml as they do on private correspondence If I had to face the desicion of stop signing a given kind of message Id rather stop signing *private* messages, as they are usually going to be readed by someone I know, for whom my identity and authorship is easily derived from the mail contents in itself. I understand Rich arguing against smime stuff that tends to be rather large, but, gpg signatures?, come on! mine is about ~0.2K long.... not larger than most .sig ppl use everyday here.
Diego
Best regards Reynaldo H. Verdejo Pinochet ps: I guess anyone can implement a filter to wipe out this kind of content (if really needed) from our lists mails, if you agree and need help, i can setup one on the server.
Reimar Döffinger wrote:
Hi, currently some decoders in libmpcodecs use lzo1x_decompress instead of lzo1x_decompress_safe, which means that there are no checks at all if
What about using liblzo2 or fflzo ? lu -- Luca Barbato Gentoo/linux Gentoo/PPC http://dev.gentoo.org/~lu_zero
On Sunday, 09 April 2006 at 15:51, Luca Barbato wrote:
Reimar Döffinger wrote:
Hi, currently some decoders in libmpcodecs use lzo1x_decompress instead of lzo1x_decompress_safe, which means that there are no checks at all if
What about using liblzo2 or fflzo ?
I think I saw lzo2 patch in Packman's RPM package for SuSE. Let me find it... Attached. -- MPlayer developer and RPMs maintainer: http://rpm.greysector.net/mplayer/ There should be a science of discontent. People need hard times and oppression to develop psychic muscles. -- from "Collected Sayings of Muad'Dib" by the Princess Irulan
Hi, On Sun, Apr 09, 2006 at 11:22:00AM +0200, Reimar D?ffinger wrote:
currently some decoders in libmpcodecs use lzo1x_decompress instead of lzo1x_decompress_safe, which means that there are no checks at all if the data fits in the output buffer. [...] Forgot to say: applied.
Greetings, Reimar Döffinger
participants (8)
-
Diego Biurrun -
Dominik 'Rathann' Mierzejewski -
Erik Slagter -
Guillaume POIRIER -
Luca Barbato -
Reimar Döffinger -
Reynaldo H. Verdejo Pinochet -
Rich Felker