]> sigrok.org Git - libsigrok.git/commit
Java: Avoid dangerous writes via casted pointers
authorDaniel Elstner <redacted>
Mon, 26 Oct 2015 06:29:50 +0000 (07:29 +0100)
committerDaniel Elstner <redacted>
Mon, 26 Oct 2015 06:29:50 +0000 (07:29 +0100)
commit865de99391194e45a0e80ea534fc5e27d5287925
treee7918ee1eb4f5a19e482730ad9e7405eeb22b4b7
parentb0b0e2009cae6b1e85992acb5213944aeff5fb53
Java: Avoid dangerous writes via casted pointers

Writing to an object through a pointer of incompatible type is
really evil. Even when the data size matches, it is still a
violation of strict aliasing rules.

Replace all instances by direct casts of the value, without the
unnecessary and dangerous indirection.
bindings/java/org/sigrok/core/classes/classes.i