Skip to content
The Jenkins Controller is preparing for shutdown. No new builds can be started.
Success

Changes

Summary

  1. doc/manual/index.html www/index.html Fix links. (details)
  2. BUG 1166: Fix JavaEmitter JVMUtil_NewDirectByteBufferCopy (details)
  3. Bug 1166: Refine fix of JavaEmitter's JVMUtil_NewDirectByteBufferCopy (details)
  4. JavaEmitter.staticClassInitCodeCCode: Reuse static strings (details)
  5. Bug 1166: Refine fix of JavaEmitter's JVMUtil_NewDirectByteBufferCopy (details)
Commit 2a8a0c090b83f151ef25154e75f1175bed5f9a2b by xerxes
doc/manual/index.html www/index.html Fix links.

Signed-off-by: Xerxes RÃ¥nby <xerxes@gudinna.com>
The file was modifieddoc/manual/index.html (diff)
The file was modifiedwww/index.html (diff)
Commit e424c28f869269f5a22c22ef017230346b22847a by xerxes
BUG 1166: Fix JavaEmitter JVMUtil_NewDirectByteBufferCopy

Prevents jlong to jint truncation
when capacity is passed from jni to java.

com.jogamp.common.nio.Buffers newDirectByteBuffer
and the underlying java.nio.ByteBuffer allocateDirect
only work with capacitys of int size.

Signed-off-by: Xerxes RÃ¥nby <xerxes@gudinna.com>
The file was modifiedsrc/java/com/jogamp/gluegen/JavaEmitter.java (diff)
Commit f6a5ac4473135bbc4bc1a5f537e060df45eb4824 by Sven Gothel
Bug 1166: Refine fix of JavaEmitter's JVMUtil_NewDirectByteBufferCopy

See commit e424c28f869269f5a22c22ef017230346b22847a (first patch)

Since JVMUtil_NewDirectByteBufferCopy is being called w/ 'size_t'
values, e.g. 'count * sizeof(Structure)',
we shall validate whether 'capacity' is valid, i.e. <= MAX_INT.

After validation, 'capacity' is being cast to 'jint' before
being passed to the java method.
The file was modifiedsrc/java/com/jogamp/gluegen/JavaEmitter.java (diff)
Commit 6ecc869eea932ac77dd6d4604eb205a8a659f83d by Sven Gothel
JavaEmitter.staticClassInitCodeCCode: Reuse static strings
The file was modifiedsrc/java/com/jogamp/gluegen/JavaEmitter.java (diff)
Commit a3701528aa4be01924c983ce74e2efeaba0e58bc by Sven Gothel
Bug 1166: Refine fix of JavaEmitter's JVMUtil_NewDirectByteBufferCopy (2)

Further refine code, see commit f6a5ac4473135bbc4bc1a5f537e060df45eb4824.

- Perform a NULL check on Buffers.newDirectByteBuffer(..) result.
- Only copy memory if capacity > 0, incl fetching direct buffer address
The file was modifiedsrc/java/com/jogamp/gluegen/JavaEmitter.java (diff)