Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

長さが256以上のパケットを受け取れない #21

Closed
GoogleCodeExporter opened this issue Jan 3, 2016 · 2 comments
Closed

Comments

@GoogleCodeExporter
Copy link

CommandPortClient.javaの156行目以降(下に転記)が間違ってるので��
�256以上のサ
イズのパケットを取れません。
<<で左に24ビットずらしてるのに、&0xFFで下1バイト(8ビット)�
��外を0にしたら、
結果は絶対0です。
16ビット、8ビットでも同じです。
int packetSizeは、最終的には「buffer[processedSize + 3] & 
0xFF」になります。
                    int packetSize = ((buffer[processedSize + 0] << 24) & 0xFF)
                            + ((buffer[processedSize + 1] << 16) & 0xFF)
                            + ((buffer[processedSize + 2] << 8) & 0xFF)
                            + (buffer[processedSize + 3] & 0xFF);



Original issue reported on code.google.com by tarotaro...@gmail.com on 2 Dec 2008 at 4:23

@GoogleCodeExporter
Copy link
Author

ご指摘ありがとうございました。たまたま256バイトを超え��
�パケットが現在の使い方だと生じ
ないから問題にならなかっただけですね…。修正後、009b2と
してリリースします。

Original comment by kotob...@gmail.com on 3 Dec 2008 at 12:51

  • Changed state: Accepted
  • Added labels: Component-Server, Priority-Critical, Type-Defect

@GoogleCodeExporter
Copy link
Author

should be fixed in r530

Original comment by kotob...@gmail.com on 3 Dec 2008 at 1:36

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant