mirror of
https://git.code.sf.net/p/libpng/code.git
synced 2025-07-10 18:04:09 +02:00
Coverity related changes
These should fix most of the reported Coverity issues. The remaining issues should be the back_b etc assignments, which look like a Coverity bug, and passing a pointer to a byte to a function that expects a pointer to one or more bytes, which should (I believe) be fixed in one case and not the other (next_filter) case; the latter case will probably go away as I am going to rewrite that piece of code to avoid a spurious buffer allocation. Signed-off-by: John Bowler <jbowler@acm.org>
This commit is contained in:
committed by
Glenn Randers-Pehrson
parent
d280c3a6da
commit
f8d3e854cb
@@ -1506,7 +1506,7 @@ png_gamma_significant(png_const_structrp png_ptr, png_fixed_point gamma_val,
|
||||
};
|
||||
|
||||
/* Handle out of range values in release by doing the gamma correction: */
|
||||
debug(sbits > 0U && sbits <= 16U);
|
||||
debug_handled(sbits > 0U && sbits <= 16U);
|
||||
if (sbits == 0U || sbits > 16U)
|
||||
return 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user