[CONTROLLER-806] ICMP.computeChecksum() may cause ArrayIndexOutOfBoundsException. Created: 11/Sep/14 Updated: 19/Oct/17 Resolved: 05/May/15 |
|
| Status: | Resolved |
| Project: | controller |
| Component/s: | adsal |
| Affects Version/s: | Helium |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Shigeru Yasuda | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: Linux |
||
| External issue ID: | 1805 |
| Description |
|
ICMP.computeChecksum() causes ArrayIndexOutOfBoundsException if the size of java.lang.ArrayIndexOutOfBoundsException: 49 In this case the payload needs to be padded with a zero octet for computing In addition, ICMP.computeChecksum() clears carry bits of the 16-bit checksum carry = (sum >> 16) & 0xFF; <=== So it generates incorrect checksum if the 16-bit checksum overflows |
| Comments |
| Comment by Shigeru Yasuda [ 11/Sep/14 ] |
|
I pushed a patch to fix ICMP checksum bugs. |
| Comment by Carol Sanders [ 05/May/15 ] |
|
This bug is part of the project to Move all ADSAL associated component bugs to ADSAL. |