mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
[libng17] Stifle the last remaining Coverity issue in libpng17.
This commit is contained in:
parent
975d8fac6d
commit
bd55022b2d
@ -1816,6 +1816,11 @@ png_create_colormap_entry(png_image_read_control *display,
|
|||||||
*/
|
*/
|
||||||
if (use_sBIT)
|
if (use_sBIT)
|
||||||
{
|
{
|
||||||
|
#ifdef __COVERITY__
|
||||||
|
/* Coverity says red, green, blue might be 16-bit values */
|
||||||
|
png_affirmpp(png_ptr, red < 256 && green < 256 && blue < 256);
|
||||||
|
#endif
|
||||||
|
|
||||||
red = convert_to_linear(display, red, display->sBIT[0]);
|
red = convert_to_linear(display, red, display->sBIT[0]);
|
||||||
green = convert_to_linear(display, green, display->sBIT[1]);
|
green = convert_to_linear(display, green, display->sBIT[1]);
|
||||||
blue = convert_to_linear(display, blue, display->sBIT[2]);
|
blue = convert_to_linear(display, blue, display->sBIT[2]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user