[Insight-developers] Interesting JPEG2000 warning

Bradley Lowekamp blowekamp at mail.nih.gov
Wed Oct 27 10:57:06 EDT 2010


I just noticed the following warning, which appears to reveal a true bug:

/nfs/mead/Users/blowekamp/src/ITK/Utilities/openjpeg/j2k.c(8020): warning #186: pointless comparison of unsigned integer with zero
            for (j = tccp->numresolutions - 1; j >= 0; j--)

The loop doesn't have any breaks, or anything. So it would likely cause a segfault if it was ever executed. 

Brad



========================================================
Bradley Lowekamp  
Lockheed Martin Contractor for
Office of High Performance Computing and Communications
National Library of Medicine 
blowekamp at mail.nih.gov


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/mailman/private/insight-developers/attachments/20101027/5a60f611/attachment.htm>


More information about the Insight-developers mailing list