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

coulbeck
11.30.2006 62b5bb664127c04d051d90d001a07e8fd6f9adb9
refs
author coulbeck <coulbeck@localhost>
Monday, September 11, 2006 22:30 +0200
committer coulbeck <coulbeck@localhost>
Monday, September 11, 2006 22:30 +0200
commit62b5bb664127c04d051d90d001a07e8fd6f9adb9
tree d57679c0b9301f40305e78cc9fec0c176543eaa7 tree | zip | gz
parent ffcfe5c97aeef4e8d858d4e6545dfebc9e56e4e7 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
opends/src/server/org/opends/server/protocols/asn1/ASN1Element.java 6 ●●●● diff | view | raw | blame | history