#fixed code
                             void send(int code, MessageLite req) throws IOException {
		int len = req.getSerializedSize();
		dout.writeInt(len + 1);
		dout.write(code);
		req.writeTo(dout);
		dout.flush();
	}
#vulnerable code 
                             void send(int code) throws IOException {
		dout.writeInt(1);
		dout.write(code);
		dout.flush();
	} 
                            #location 4 
                            #vulnerability type THREAD_SAFETY_VIOLATION