Mantis - Hessian
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
3692 | minor | always | 09-22-09 11:39 | 01-12-11 18:31 | |
|
|||||
Reporter: | lcwik | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | new | Product Version: | 4.0.1 | ||
Product Build: | Resolution: | open | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
Summary: | 0003692: MicroHessianOutput writeBytes wrong size | ||||
Description: | MicroHessianOutput writeBytes incorrectly encodes the size of the array into the stream. The "<<" is the wrong way. | ||||
Steps To Reproduce: | |||||
Additional Information: |
Fix: public void writeBytes(byte []buffer, int offset, int length) throws IOException { if (buffer == null) { os.write('N'); } else { os.write('B'); os.write(length >> 8); os.write(length); os.write(buffer, offset, length); } Previously: public void writeBytes(byte []buffer, int offset, int length) throws IOException { if (buffer == null) { os.write('N'); } else { os.write('B'); os.write(length << 8); os.write(length); os.write(buffer, offset, length); } |
||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|