Anomaly identified by the detector. Please review whether this anomaly corresponds to a misuse.
Finding:
6
In File:
sos/mrtd/PassportService.java
In Method:
readIssuingState()
Code with Finding:
class PassportService {
/**
* Reads the issuing state.
*
* @return a string of length 3 containing an abbreviation
* of the issuing state or organization
*
* @throws IOException if something goes wrong
*/
public String readIssuingState() throws IOException {
byte[] fileData = readMRZ();
DataInputStream in = new DataInputStream(new ByteArrayInputStream(fileData));
in.skip(2);
byte[] data = new byte[3];
in.readFully(data);
return new String(data);
}
}