Re: Fwd: [glennrp/libpng] Undefined behaviour in pngutil.c (#149)
John Bowler <[email protected]>
| Newsgroups | gmane.comp.graphics.png.devel |
|---|---|
| Message-ID | <CAP7U39_LwQTtfwC8_SDvBiV=bHzdzbFoOksezwMJ+Gb-zx+LYg@mail.gmail.com> |
On Tue, Jan 3, 2017 at 5:55 AM, Glenn Randers-Pehrson <[email protected]> wrote: > libpng17 is better anyhow; the "options" member is gone and replaced with > individual "png_ptr->someflag" bytes. > IRC they are all bitfields, normally 'unsigned int flag : 1U'; the intention was to avoid second guessing the best way to code a one bit value in C, a bit field gives the compiler enormous freedom (for one thing, it can re-order them with respect to other bit fields). -- John Bowler <[email protected]> +1 (541) 450-9885 PO BOX 3151 KERBY OR 97531-3151 USA ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ png-mng-implement mailing list png-mng-implement-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/png-mng-implement