Package: libnetpbm10-dev
Version: 2:10.0-11

In lines 68--70 of libpnm3.c, obviously some parentheses are missing;
e.g., line 68 is:

     PPM_GETR(ul) + PPM_GETR(ur) + PPM_GETR(ll) + PPM_GETR(lr) / 4,

but should be:

     ( PPM_GETR(ul) + PPM_GETR(ur) + PPM_GETR(ll) + PPM_GETR(lr) ) / 4,

otherwise, the value calculated is not a proper average.
This bug manifests shows up in  pnmcrop -sides  reporting a nonsensical
background colour value.

The same error is in lines 123--124.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to