Subject: [Boost-bugs] [Boost C++ Libraries] #2784: Wrong initialization of data members in packed_pixel constructors
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-02-20 14:18:40
#2784: Wrong initialization of data members in packed_pixel constructors
-----------------------------------------------------+----------------------
Reporter: Tim Bruylants <tim.bruylants_at_[hidden]> | Owner: hljin
Type: Bugs | Status: new
Milestone: Boost 1.39.0 | Component: GIL
Version: Boost 1.38.0 | Severity: Problem
Keywords: GIL packed_pixel |
-----------------------------------------------------+----------------------
Just stumbled upon it by accident.
The constructor "packed_pixel(int chan0, int chan1, int chan2, int chan3)"
assigns "at_c<2>(*this)=chan3;" (overwriting the previous value of
at_c<2>). This should be "at_c<3>(*this)=chan3;"
Similar problem exists in the constructor "packed_pixel(int chan0, int
chan1, int chan2, int chan3, int chan4)" where "chan3" and "chan4" are
assigned incorrectly.
I have not included a patch, since fixing the problem is straight forward.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/2784> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:59 UTC