mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

coulbeck
11.30.2006 b9e6487798ddd612278008e005d9edb9916a9682
refs
author coulbeck <coulbeck@localhost>
Monday, September 11, 2006 22:30 +0200
committer coulbeck <coulbeck@localhost>
Monday, September 11, 2006 22:30 +0200
commitb9e6487798ddd612278008e005d9edb9916a9682
tree 8870d86f717952aad30accf2eef713a1b93b3ef7 tree | zip | gz
parent 6de5c389a5e74b1b9f4acc2d7082e4d252501a54 view | diff
Fix for issue 629.

I rearranged the operands in the if statement to avoid possibility of integer overflow, and I fixed the log message to calculate the remaining bytes correctly. The second chunk of the diff is the important one, the first chunk is for consistency only. I didn't spot any other code having the same issue.

With this fix, there are no errors in the server log after running the OULU test suites and the server is still accepting requests.
1 files modified
6 ■■■■ changed files
opendj-sdk/opends/src/server/org/opends/server/protocols/asn1/ASN1Element.java 6 ●●●● diff | view | raw | blame | history