Hi,
Please find the latest report on new defect(s) introduced to cloudstack found
with Coverity Scan.
1 new defect(s) introduced to cloudstack found with Coverity Scan.
2 defect(s), reported by Coverity Scan earlier, were marked fixed in the recent
build analyzed by Coverity Scan.
New defect(s) Reported-by: Coverity Scan
Showing 1 of 1 defect(s)
** CID 1264632: Dm: Dubious method used (FB.DM_DEFAULT_ENCODING)
/utils/src/com/cloud/utils/ConstantTimeComparator.java: 37 in
com.cloud.utils.ConstantTimeComparator.compareStrings(java.lang.String,
java.lang.String)()
________________________________________________________________________________________________________
*** CID 1264632: Dm: Dubious method used (FB.DM_DEFAULT_ENCODING)
/utils/src/com/cloud/utils/ConstantTimeComparator.java: 37 in
com.cloud.utils.ConstantTimeComparator.compareStrings(java.lang.String,
java.lang.String)()
31 result |= b1[i] ^ b2[i];
32 }
33 return result == 0;
34 }
35
36 public static boolean compareStrings(String s1, String s2) {
>>> CID 1264632: Dm: Dubious method used (FB.DM_DEFAULT_ENCODING)
>>> Found reliance on default encoding: String.getBytes()
37 return compareBytes(s1.getBytes(), s2.getBytes());
38 }
________________________________________________________________________________________________________
To view the defects in Coverity Scan visit,
http://scan.coverity.com/projects/943?tab=overview
To manage Coverity Scan email notifications for "[email protected]",
click
http://scan.coverity.com/subscriptions/edit?email=dev%40cloudstack.apache.org&token=494aabd5ba647999fa41b6d766646231
.