Hi,

This change fixes some minor issues found in our code scans.
I hope this correctly addresses corelib and serviceability issues.

Please review:
http://cr.openjdk.java.net/~goetz/wr16/8170663-corlib_s11y/webrev.01/

Best regards,
  Goetz.

Changes in detail:

e_asin.c

Code scan reports missing {}.

The code "if (huge+x>one) {" is only there to set the inexact flag of the 
processor.
It's a way to avoid the C compiler to optimize the code away. It is always true,
so the parenthesis of the outer else don't matter.

Although this basically just adds the {} I would like to submit this to
avoid anybody else spends more the 30sec on understanding these
if statements.

k_standard.c

exc.retval is returned below and thus should always be initialized.


imageDecompressor.cpp

Wrong destructor is used.  Reported also by David CARLIER


java.c

in line 1865 'name' was used, it should be 'alias'.


java_md_solinux.c

"//" in path is useless. Further down a free is missing.


SDE.c

Call to stratumTableIndex can return negative value if defaultStratumId == null.


socket_md.c

arg.l_linger is passed to setsockopt uninitialized. Its use is hidden in the 
macros.


unpack.cpp

n.slice should not get negative argument for end, which is passed from dollar1.
But dollar1 can get negative where it is set to the result of 
lastIndexOf(DOLLAR_MIN, DOLLAR_MAX, n, dollar2 - 1).

Reply via email to