amzn / amazon-pay-sdk-java

Amazon Pay Java SDK
https://pay.amazon.com/documentation
Apache License 2.0
58 stars 51 forks source link

Code Correctness: Byte Array to String Conversion #34

Open QiAnXinCodeSafe opened 4 years ago

QiAnXinCodeSafe commented 4 years ago

https://github.com/amzn/amazon-pay-sdk-java/blob/9b0bf0ff293dd24585aabf8e25b01d016e6620d8/src/com/amazon/pay/impl/Util.java#L191

Converting a byte array into a String may lead to data loss.

OBrutus commented 1 year ago

Let me try this.