Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions mina-core/src/main/java/org/apache/mina/core/buffer/IoBuffer.java
Original file line number Diff line number Diff line change
Expand Up @@ -1711,6 +1711,9 @@ public abstract IoBuffer putPrefixedString(CharSequence val, int prefixLength, i
/**
* Reads a Java object from the buffer using the context {@link ClassLoader} of
* the current thread.
* <p>
* See {@link #putObject(Object)} for how the serialized form differs
* across MINA versions.
*
* @return The read Object
* @throws ClassNotFoundException thrown when we can't find the Class to use
Expand All @@ -1719,6 +1722,9 @@ public abstract IoBuffer putPrefixedString(CharSequence val, int prefixLength, i

/**
* Reads a Java object from the buffer using the specified <code>classLoader</code>.
* <p>
* See {@link #putObject(Object)} for how the serialized form differs
* across MINA versions.
*
* @param classLoader The classLoader to use to read an Object from the IoBuffer
* @return The read Object
Expand All @@ -1728,6 +1734,12 @@ public abstract IoBuffer putPrefixedString(CharSequence val, int prefixLength, i

/**
* Writes the specified Java object to the buffer.
* <p>
* The serialized form of Serializable objects changed in MINA 2.2.8, as
* part of the CVE-2026-47065 fix: a stream produced by MINA 2.2.7 or
* earlier cannot be read by MINA 2.2.8 or later, and a stream produced by
* MINA 2.2.8 or later cannot be read by MINA 2.2.7 or earlier. Arrays and
* primitives are not affected.
*
* @param o The Object to write in the IoBuffer
* @return The modified IoBuffer
Expand Down
Loading