Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Defining a wrapper method facilitates installing appropriate security manager checks, performing input validation before passing the arguments to the native code or when obtaining return values, defensively copying mutable inputs and sanitizing user input. Therefore every native method must be private, and must be invoked only by a wrapper method.

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="a59ed8a5257e569a-8124e392-46ac418a-b78880e6-8d2993cc19bb25d840208855"><ac:plain-text-body><![CDATA[

[[MITRE 2009

AA. Bibliography#MITRE 09]]

[CWE ID 111

http://cwe.mitre.org/data/definitions/111.html] "Direct Use of Unsafe JNI"

]]></ac:plain-text-body></ac:structured-macro>

...

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="59ed3c1e33d28579-c31af6cc-49b347e3-b43b99c7-15002a2ef729bc8607afe4bb"><ac:plain-text-body><![CDATA[

[[Fairbanks 2007

AA. Bibliography#Fairbanks 07]]

 

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="9b3e494cf2563b9f-ac776d74-43ad4365-99879f9c-1db5bb67bbfba6fc1797b059"><ac:plain-text-body><![CDATA[

[[JNI 2006

AA. Bibliography#JNI 06]]

 

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c307e5d36a7f40a8-7343947d-40304a48-9ee58c7a-73bd7bab0be2d90f6aca4522"><ac:plain-text-body><![CDATA[

[[Liang 1997

AA. Bibliography#Liang 97]]

 

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="7b96b5a17d811c58-e8b37ba5-4bee4eba-a32aad73-e33d4111e6d9bebe62163d47"><ac:plain-text-body><![CDATA[

[[Macgregor 1998

AA. Bibliography#Macgregor 98]]

Section 2.2.3, Interfaces and Architectures

]]></ac:plain-text-body></ac:structured-macro>

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="c1ede65f092fb626-a2a52afc-4e6443b9-92fda4d0-3c9e350c66a200826a0e2994"><ac:plain-text-body><![CDATA[

[[SCG 2007

AA. Bibliography#SCG 07]]

Guideline 3-3 Define wrappers around native methods

]]></ac:plain-text-body></ac:structured-macro>

...