lzip-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Lzip-bug] problem with extern variables in lzlib


From: Tino Lange
Subject: [Lzip-bug] problem with extern variables in lzlib
Date: Thu, 08 Apr 2010 18:26:04 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20090817 Lightning/0.9 Thunderbird/2.0.0.23 Mnenhy/0.7.6.0

Hi Antonio,

In lzlib (lzlib.h) you're using
extern const CRC32 crc32
which might (and for me will) collide with own applications that lzlib is linked with (since another variable or function named crc32 is quite common...). Especially this might lead to crashes when it is used as shared lib.

Can you please rename that variable to (for example) lz_crc32 if needed as extern at all?

[ For completeness the
extern const Dis_slots dis_slots;
extern const Prob_prices prob_prices;
might be prefixed with lz_ also? ]

Thanks

Tino




reply via email to

[Prev in Thread] Current Thread [Next in Thread]