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

Jean-Noel Rouvignac
17.05.2015 1d88ff472c4e058356ccd8d9336959fa6c917b78
refs
author Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, March 17, 2015 12:05 +0100
committer Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Tuesday, March 17, 2015 12:05 +0100
commit1d88ff472c4e058356ccd8d9336959fa6c917b78
tree 98916b3ac91c6ed6058f23376673b65e110d1c84 tree | zip | gz
parent 6850acd9dbc6a11b9b2184169251e7ca70f7a436 view | diff
Fixed java.lang.NegativeArraySizeException in ByteString.toHexString().

ByteStringTestCase.java:
Added a test to reproduce the NegativeArraySizeException

ByteString.java, Base64.java:
Added fast paths that return interned string which can reduce memory pressure.
3 files modified
19 ■■■■ changed files
opendj-core/src/main/java/org/forgerock/opendj/ldap/Base64.java 6 ●●●● diff | view | raw | blame | history
opendj-core/src/main/java/org/forgerock/opendj/ldap/ByteString.java 11 ●●●●● diff | view | raw | blame | history
opendj-core/src/test/java/org/forgerock/opendj/ldap/ByteStringTestCase.java 2 ●●●●● diff | view | raw | blame | history