Closed Bug 301646 Opened 19 years ago Closed 19 years ago

zlib-1.2.3 has been released

Categories

(Core :: Graphics: ImageLib, enhancement)

enhancement
Not set
normal

Tracking

()

VERIFIED FIXED

People

(Reporter: glennrp+bmo, Assigned: glennrp+bmo)

References

()

Details

Attachments

(1 file, 4 obsolete files)

zlib-1.2.3 has been released.  We should upgrade.
Attached patch upgrade-to-zlib-1.2.3.diff (obsolete) — Splinter Review
patch to upgrade modules/zlib to version 1.2.3
Assignee: pavlov → glennrp
Status: NEW → ASSIGNED
Comment on attachment 190090 [details] [diff] [review]
upgrade-to-zlib-1.2.3.diff

tor: r?
Attachment #190090 - Flags: review?(tor)
I inadvertently included several files that don't belong in the patch:
example.c, minigzip.c, and zconf.in.h.  I'll produce a new patch without
them.
Patch without example.c, minigzip.c, and zconf.in.h

tor: r?
Attachment #190090 - Attachment is obsolete: true
Attachment #190138 - Flags: review?(tor)
Attachment #190090 - Flags: review?(tor)
There appear to be a dozen or so zlib symbols not prefixed with MOZ_Z_.
Re comment #5: I ran "strings *.so" in modules/zlib/src and got this, after
removing the MOZ_Z prefixed symbols and some other junk that was obviously not
exported symbols:

_DYNAMIC
_GLOBAL_OFFSET_TABLE_
_fini
__cxa_finalize
__deregister_frame_info
__register_frame_info
_Jv_RegisterClasses
memcpy
memset
malloc
strcpy
__error
fopen
fdopen
fprintf
ftell
sprintf
fwrite
fread
__isthreaded
ferror
fclose
vsnprintf
fflush
fseek
fputc
strerror
strcat

Of these, the first seven (and "__isthreaded") don't appear in the zlib source
(*.c, *.h) and the rest look to me like things exported by system libraries, not
by zlib.

What did I miss?

GLenn
Your path removes the following chunk from zconf.h, which is needed by mozilla
on newer versions of gcc:

#ifdef HAVE_VISIBILITY_PRAGMA
#define ZEXTERN __attribute__((visibility ("default"))) extern
#endif

With that the confusion about symbols is gone and that looks fine.
I'm not that familiar with win32 dll creation/linkage, but shouldn't the new
functions listed in mozzconf.h be added to zlib.def?
Re: comment #7, shouldn't that snippet go in mozzconf.h rather than zconf.h?
It's less likely to get accidentally removed that way.
Re: comment #8, zlib is no longer distributing zlib.def so it should be
removed.
Revised patch with HAVE_VISIBILITY_PRAGMA treatment and without zlib.def
Attachment #190138 - Attachment is obsolete: true
Attachment #190214 - Flags: review?(tor)
Attachment #190138 - Flags: review?(tor)
zlib.def is still used by the mozilla build system.
There are in fact *two* instances of zlib.def in subdirectories of the zlib
distribution, but they are even older and more decrepit than the one that was
removed from the top level.
zlib.def restored and updated with new symbols.  Would it be better to call it
mozzlib.def?  Same goes for zlib.pkg which is also not distributed with zlib.
Attachment #190214 - Attachment is obsolete: true
Attachment #190351 - Flags: review?(tor)
Attachment #190214 - Flags: review?(tor)
Attachment #190351 - Flags: review?(tor) → review+
Attachment #190351 - Flags: superreview?(cbiesinger)
Comment on attachment 190351 [details] [diff] [review]
zlib upgrade patch with updated zlib.def

sorry... I'm not a super-reviewer
Attachment #190351 - Flags: superreview?(cbiesinger)
Attachment #190351 - Flags: superreview?(dveditz)
The security patch for bug #300349 has been checked in.  That breaks this patch
so here is a revised one.  The checkin also eliminates the dependency of bug
#300349 on this one, so I'll remove the dependency flag.
Attachment #190351 - Attachment is obsolete: true
Attachment #190647 - Flags: review?(tor)
No longer blocks: 300349
Attachment #190351 - Flags: superreview?(dveditz)
Attachment #190647 - Flags: review?(tor) → review+
Attachment #190647 - Flags: superreview?(dveditz)
dveditz: sr?
Comment on attachment 190647 [details] [diff] [review]
zlib-1.2.3 upgrade patch accounting for bug 300349 checkin

sr=dveditz
Attachment #190647 - Flags: superreview?(dveditz) → superreview+
Attachment #190647 - Flags: approval1.8b4?
Attachment #190647 - Flags: approval1.8b4? → approval1.8b4+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: